DataObjects/Core_domain.php
[Pman.Core] / NotifySmtpCheck.php
index ebfd2f7..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();
@@ -40,14 +30,13 @@ class Pman_Core_NotifySmtpCheck extends Pman
             $socket_options = array (
                 'ssl' => array(
                     'verify_peer'  => false,
-                    'verify_peer_name'  => false,
-                    'allow_self_signed' => true
+                    'verify_peer_name'  => false
                 )
             );
 
             $smtp = new Net_SMTP($server, $settings['port'], $helo, false, 0, $socket_options);
 
-            $smtp->setDebug(true);
+//            $smtp->setDebug(true);
 
             $res = $smtp->connect(10);
 
@@ -64,7 +53,12 @@ class Pman_Core_NotifySmtpCheck extends Pman
             }
         }
         
-        print_r($error);exit;
+        if(!empty($error)){
+            print_r($error);
+            exit;
+        }
+        
+        return;
     }
     
     function getHelo()