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

index a6c3130..d693ab8 100644 (file)
@@ -77,8 +77,11 @@ class Pman_Core_NotifySmtpCheck extends Pman
                 
                 $res = $smtp->auth($settings['username'], $settings['password']);
             
-//                $smtpmx->_smtp->disconnect();
-                print_r("resutlt : {$res} \n");
+                if (is_a($res, 'PEAR_Error')) {
+                    die($res);
+                }
+                
+                print_R("SUCCESS? {$res} \n");
                 exit;
                     
 //                $mx = $smtpmx->_getMx($dom);