NotifySmtpCheck.php
authoredward <edward@roojs.com>
Thu, 14 Jul 2016 05:53:33 +0000 (13:53 +0800)
committeredward <edward@roojs.com>
Thu, 14 Jul 2016 05:53:33 +0000 (13:53 +0800)
NotifySmtpCheck.php

index 0722da3..fda61bb 100644 (file)
@@ -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')) {