From 5f60f7d74d1e6adc5294e275c4a592e8dca1d390 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 13:53:33 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index 0722da39..fda61bbf 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -19,7 +19,7 @@ class Pman_Core_NotifySmtpCheck extends Pman $helo = $this->getHelo(); - $error = array('test'); + $error = array(); foreach ($ff->Core_Notify['routes'] as $server => $settings){ if(empty($settings['domains']) || empty($settings['username']) || empty($settings['password'])){ @@ -36,6 +36,8 @@ class Pman_Core_NotifySmtpCheck extends Pman $smtp = new Net_SMTP($server, $settings['port'], $helo, false, 0, $socket_options); +// $smtp->setDebug(true); + $res = $smtp->connect(10); if (is_a($res, 'PEAR_Error')) { -- 2.39.2