1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-19 17:03:01 +05:30

(refactor): changed smtp to tls

This commit is contained in:
2024-01-08 00:04:22 +05:30
parent 0739aee08e
commit a518232f47

View File

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