From 0ef99f30bf044fba527e5ec6c22ac973e002d557 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 25 Jul 2016 12:38:08 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2