NotifySmtpCheck.php
authorAlan Knowles <alan@roojs.com>
Mon, 25 Jul 2016 04:38:08 +0000 (12:38 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 25 Jul 2016 04:38:08 +0000 (12:38 +0800)
NotifySmtpCheck.php

index 87f86fc..6408019 100644 (file)
@@ -41,7 +41,9 @@ class Pman_Core_NotifySmtpCheck extends Pman
                     'verify_peer_name'  => false
                 )
             );
-
+            if (empty($settings['port'])) {
+                $settings['port'] = 25;
+            }
             $smtp = new Net_SMTP($server, $settings['port'], $helo, false, 0, $socket_options);
 
 //            $smtp->setDebug(true);