From 19a1da0d7a4d7f1d95ce3631a378e0278eb56af8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 21 Nov 2008 07:32:26 +0100 Subject: properly enable smtp auth in phpmailer when needed --- modules/pref-users.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') 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; } -- cgit v1.2.3