From: Alan Knowles Date: Mon, 25 Jul 2016 04:38:08 +0000 (+0800) Subject: NotifySmtpCheck.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=0ef99f30bf044fba527e5ec6c22ac973e002d557 NotifySmtpCheck.php --- diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index 87f86fc0..6408019d 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -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);