From: edward Date: Thu, 14 Jul 2016 04:21:04 +0000 (+0800) Subject: NotifySmtpCheck.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=4f5c9839ae1203b667d96b4f9cf5cb5b1a4e1742 NotifySmtpCheck.php --- diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index 3aa283ed..2bda62a1 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -46,10 +46,14 @@ class Pman_Core_NotifySmtpCheck extends Pman $smtpmx->_smtp = new Net_SMTP($server, $smtpmx->port, $smtpmx->mailname); - print_R($smtpmx->_smtp);exit; +// print_R($smtpmx->_smtp);exit; $res = $smtpmx->_smtp->connect($smtpmx->timeout); - + + if (is_a($res, 'PEAR_Error')) { + print_R('error?????');exit; + } + $smtpmx->_smtp->disconnect(); print_R($res);exit;