UpdateDatabase.php
[Pman.Core] / NotifySmtpCheck.php
index cf87c78..1de2f94 100644 (file)
@@ -45,9 +45,7 @@ class Pman_Core_NotifySmtpCheck extends Pman
         
         $e = `$cmd`;
         
-        $helo = substr(array_pop(explode(' ', $e)), 0, -1);
-        
-        print_R($helo);exit;
+        $helo = substr(array_pop(explode(' ', $e)), 0, -2);
         
         $error = array();
         
@@ -67,7 +65,7 @@ class Pman_Core_NotifySmtpCheck extends Pman
                     )
                 );
                 
-                $smtp = new Net_SMTP($server, $settings['port'], '058177247238.ctinets.com', false, 0, $socket_options);
+                $smtp = new Net_SMTP($server, $settings['port'], $helo, false, 0, $socket_options);
                 
                 $smtp->setDebug(true);