1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

(refactor): changed smtp to implicit tls

This commit is contained in:
2024-01-08 15:07:17 +05:30
parent a518232f47
commit 352af56e3e

View File

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