DataObjects/Core_domain.php
[Pman.Core] / NotifySmtpCheck.php
index 666197a..fda61bb 100644 (file)
@@ -10,6 +10,13 @@ class Pman_Core_NotifySmtpCheck extends Pman
     {
         $ff = HTML_FlexyFramework::get();
         
+        if(
+                empty($ff->Core_Notify) ||
+                empty($ff->Core_Notify['routes'])
+        ){
+            return;
+        }
+        
         $helo = $this->getHelo();
         
         $error = array();
@@ -29,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);
 
@@ -46,7 +53,12 @@ class Pman_Core_NotifySmtpCheck extends Pman
             }
         }
         
-        return $error;
+        if(!empty($error)){
+            print_r($error);
+            exit;
+        }
+        
+        return;
     }
     
     function getHelo()