NotifySmtpCheck.php
authoredward <edward@roojs.com>
Thu, 14 Jul 2016 04:21:04 +0000 (12:21 +0800)
committeredward <edward@roojs.com>
Thu, 14 Jul 2016 04:21:04 +0000 (12:21 +0800)
NotifySmtpCheck.php

index 3aa283e..2bda62a 100644 (file)
@@ -46,10 +46,14 @@ class Pman_Core_NotifySmtpCheck extends Pman
                 
                 $smtpmx->_smtp = new Net_SMTP($server, $smtpmx->port, $smtpmx->mailname);
                     
-                print_R($smtpmx->_smtp);exit;
+//                print_R($smtpmx->_smtp);exit;
                 
                 $res = $smtpmx->_smtp->connect($smtpmx->timeout);
-
+                
+                if (is_a($res, 'PEAR_Error')) {
+                    print_R('error?????');exit;
+                }
+            
                 $smtpmx->_smtp->disconnect();
 
                 print_R($res);exit;