auth settings
authorAlan Knowles <alan@roojs.com>
Thu, 18 Mar 2021 06:24:48 +0000 (14:24 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 18 Mar 2021 06:24:48 +0000 (14:24 +0800)
NotifySend.php

index fa0c575..2c567e7 100644 (file)
@@ -428,8 +428,8 @@ class Pman_Core_NotifySend extends Pman
                     
                     
                     $mailer->host = $server;
-                    $mailer->auth = true;
-                    $mailer->username = $settings['username'];;
+                    $mailer->auth = isset($settings['auth']) ? $settings['auth'] : true;
+                    $mailer->username = $settings['username'];
                     $mailer->password = $settings['password'];
                     if (isset($settings['port'])) {
                         $mailer->port = $settings['port'];