]> git.wh0rd.org Git - tt-rss.git/commitdiff
properly enable smtp auth in phpmailer when needed
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 21 Nov 2008 06:32:26 +0000 (07:32 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 21 Nov 2008 06:32:26 +0000 (07:32 +0100)
functions.php
modules/pref-users.php

index 5dc85264a99ffcfaafb14c694e3428a26f531972..a800a6a83ae05bcb411c7f5c92f89dd69de96dd9 100644 (file)
                                        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;
                                        }
index 75afb00a386f9d6aefa8faec0f14abc19f667a5b..fa3dfabad164d26a249b36ce51d7ae77aad99f5e 100644 (file)
                                        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;
                                        }