DataObjects/Core_domain.php
[Pman.Core] / NotifySmtpCheck.php
index 5398143..fda61bb 100644 (file)
@@ -36,7 +36,7 @@ class Pman_Core_NotifySmtpCheck extends Pman
 
             $smtp = new Net_SMTP($server, $settings['port'], $helo, false, 0, $socket_options);
 
-            $smtp->setDebug(true);
+//            $smtp->setDebug(true);
 
             $res = $smtp->connect(10);
 
@@ -53,7 +53,12 @@ class Pman_Core_NotifySmtpCheck extends Pman
             }
         }
         
-        return $error;
+        if(!empty($error)){
+            print_r($error);
+            exit;
+        }
+        
+        return;
     }
     
     function getHelo()