DataObjects/Core_domain.php
[Pman.Core] / NotifySmtpCheck.php
index c9854bd..fda61bb 100644 (file)
@@ -6,16 +6,6 @@ require_once 'Mail/smtpmx.php';
         
 class Pman_Core_NotifySmtpCheck extends Pman
 {
-    static $cli_desc = "Check SMTP";
-    static $cli_opts = array();
-        
-    function get()
-    {
-        $this->check();
-        
-    }
-    
     function check()
     {
         $ff = HTML_FlexyFramework::get();
@@ -46,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);
 
@@ -63,7 +53,12 @@ class Pman_Core_NotifySmtpCheck extends Pman
             }
         }
         
-        print_r($error);exit;
+        if(!empty($error)){
+            print_r($error);
+            exit;
+        }
+        
+        return;
     }
     
     function getHelo()