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();
$smtp = new Net_SMTP($server, $settings['port'], $helo, false, 0, $socket_options);
- $smtp->setDebug(true);
+// $smtp->setDebug(true);
$res = $smtp->connect(10);
}
}
- print_r($error);exit;
+ if(!empty($error)){
+ print_r($error);
+ exit;
+ }
+
+ return;
}
function getHelo()