summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.php1
-rw-r--r--modules/pref-users.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 5dc85264a..a800a6a83 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 75afb00a3..fa3dfabad 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;
}