From 4f5c9839ae1203b667d96b4f9cf5cb5b1a4e1742 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 12:21:04 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; -- 2.39.2