fix port setting
authorAlan Knowles <alan@roojs.com>
Thu, 18 Mar 2021 06:15:43 +0000 (14:15 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 18 Mar 2021 06:15:43 +0000 (14:15 +0800)
NotifySend.php

index f8076b8..fa0c575 100644 (file)
@@ -430,10 +430,13 @@ class Pman_Core_NotifySend extends Pman
                     $mailer->host = $server;
                     $mailer->auth = true;
                     $mailer->username = $settings['username'];;
-                    $mailer->password = $settings['password'];        
+                    $mailer->password = $settings['password'];
+                    if (isset($settings['port'])) {
+                        $mailer->port = $settings['port'];
+                    }
                     if (isset($settings['socket_options'])) {
                         $mailer->socket_options = $settings['socket_options'];
-                        $mailer->port = $settings['port'];
+                        
                     }