mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 22:53:03 +05:30
(refactor): changed smtp to implicit tls
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user