fix port setting
[Pman.Core] / 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'];
+                        
                     }