From: edward Date: Thu, 14 Jul 2016 05:53:33 +0000 (+0800) Subject: NotifySmtpCheck.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=5f60f7d74d1e6adc5294e275c4a592e8dca1d390 NotifySmtpCheck.php --- 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')) {