From e1758cc3e956e814a2550a5a9416c141a4253dfd Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 12:25:12 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index 4aaa448f..77650620 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -42,12 +42,16 @@ class Pman_Core_NotifySmtpCheck extends Pman ); $params = array( - 'netdns' => false, - 'mailname' => 'edward.roojs' + 'netdns' => false ); $smtpmx = new Mail_smtpmx($params); + $result = $smtpmx->_sanitizeHeaders($headers); + if (is_a($result, 'PEAR_Error')) { + $this->jerr("Error occour on '_sanitizeHeaders' \n"); + } + $smtpmx->_smtp = new Net_SMTP($server, $smtpmx->port, $smtpmx->mailname); // print_R($smtpmx->_smtp);exit; -- 2.39.2