From: Andrew Dolgov Date: Fri, 21 Nov 2008 06:32:26 +0000 (+0100) Subject: properly enable smtp auth in phpmailer when needed X-Git-Tag: 1.2.30~31 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=19a1da0d7a4d7f1d95ce3631a378e0278eb56af8;p=tt-rss.git properly enable smtp auth in phpmailer when needed --- diff --git a/functions.php b/functions.php index 5dc85264..a800a6a8 100644 --- a/functions.php +++ b/functions.php @@ -3610,6 +3610,7 @@ if (DIGEST_SMTP_HOST) { $mail->Host = DIGEST_SMTP_HOST; $mail->Mailer = "smtp"; + $mail->SMTPAuth = DIGEST_SMTP_LOGIN != ''; $mail->Username = DIGEST_SMTP_LOGIN; $mail->Password = DIGEST_SMTP_PASSWORD; } diff --git a/modules/pref-users.php b/modules/pref-users.php index 75afb00a..fa3dfaba 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -315,6 +315,7 @@ if (DIGEST_SMTP_HOST) { $mail->Host = DIGEST_SMTP_HOST; $mail->Mailer = "smtp"; + $mail->SMTPAuth = DIGEST_SMTP_LOGIN != ''; $mail->Username = DIGEST_SMTP_LOGIN; $mail->Password = DIGEST_SMTP_PASSWORD; }