From 352af56e3eca61e5827604b58903d86fc0bed65a Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Mon, 8 Jan 2024 15:07:17 +0530 Subject: [PATCH] (refactor): changed smtp to implicit tls --- htdocs/core/handle_contact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/handle_contact.php b/htdocs/core/handle_contact.php index 293da5c..38f2978 100644 --- a/htdocs/core/handle_contact.php +++ b/htdocs/core/handle_contact.php @@ -35,10 +35,10 @@ function send_contact_email($name, $email, $message) { $mail->SMTPAuth = true; $mail->Username = $_ENV['SMTP_USER']; $mail->Password = $_ENV['SMTP_PASS']; - $mail->SMTPSecure = "tls"; + $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; $mail->Port = $_ENV['SMTP_PORT']; - $mail->setFrom($_ENV['SMTP_USER'], 'contact@neosubhamoy.com'); + $mail->setFrom('no-reply@neosubhamoy.com', 'no-reply@neosubhamoy.com'); $mail->addAddress($_ENV['SMTP_SENDTO']); $mail->isHTML(true);