summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-11-21 07:32:26 +0100
committerAndrew Dolgov <[email protected]>2008-11-21 07:32:26 +0100
commit19a1da0d7a4d7f1d95ce3631a378e0278eb56af8 (patch)
treeb87437ba4e141011660f6b73b22b339482fda40d /modules
parent6236af16246b99acfb47d037219b6a81c66b1ce7 (diff)
properly enable smtp auth in phpmailer when needed
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-users.php1
1 files changed, 1 insertions, 0 deletions
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;
}