isSMTP(); $userMail->Host = 'smtp.gmail.com'; $userMail->SMTPAuth = true; $userMail->Username = $sending_email; $userMail->Password = $app_password; $userMail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $userMail->Port = 587; // User Email Configuration $userMail->setFrom($sending_email, $support_name); $userMail->addAddress($user_email); $userMail->isHTML(true); $userMail->Subject = "Thank you for contacting " . $support_name; // Embed logo $userMail->addEmbeddedImage('img/logo/logo-trans.png', 'logo_cid'); // User Email Template $userMail->Body = <<
Thank you for contacting us, $name!
We've successfully received your message and our team will get back to you within 24-48 hours.
Your email address ($user_email) is safe with us. We never share your information with third parties.
Action required: Please respond to the user inquiry