UpdateDatabase.php
[Pman.Core] / NotifySmtpCheck.php
index ebfd2f7..666197a 100644 (file)
@@ -6,27 +6,10 @@ 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();
         
-        if(
-                empty($ff->Core_Notify) ||
-                empty($ff->Core_Notify['routes'])
-        ){
-            return;
-        }
-        
         $helo = $this->getHelo();
         
         $error = array();
@@ -40,8 +23,7 @@ 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
                 )
             );
 
@@ -64,7 +46,7 @@ class Pman_Core_NotifySmtpCheck extends Pman
             }
         }
         
-        print_r($error);exit;
+        return $error;
     }
     
     function getHelo()