Disable AutoTLS for PHPMailer

This commit is contained in:
Mike Koch 2017-07-30 14:52:03 -04:00
parent 37bd252041
commit 4db151de66

View File

@ -15,6 +15,10 @@ class BasicEmailSender implements EmailSender {
if ($heskSettings['smtp']) {
$mailer->isSMTP();
$mailer->SMTPAuth = true;
//-- We'll set this explicitly below if the user has it enabled.
$mailer->SMTPAutoTLS = false;
if ($heskSettings['smtp_ssl']) {
$mailer->SMTPSecure = "ssl";
} elseif ($heskSettings['smtp_tls']) {