From a518232f4709f381104689eb43124d1353e8ef80 Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Mon, 8 Jan 2024 00:04:22 +0530 Subject: [PATCH] (refactor): changed smtp to tls --- htdocs/core/handle_contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/handle_contact.php b/htdocs/core/handle_contact.php index c79f9d2..293da5c 100644 --- a/htdocs/core/handle_contact.php +++ b/htdocs/core/handle_contact.php @@ -35,7 +35,7 @@ function send_contact_email($name, $email, $message) { $mail->SMTPAuth = true; $mail->Username = $_ENV['SMTP_USER']; $mail->Password = $_ENV['SMTP_PASS']; - $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; + $mail->SMTPSecure = "tls"; $mail->Port = $_ENV['SMTP_PORT']; $mail->setFrom($_ENV['SMTP_USER'], 'contact@neosubhamoy.com');