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);