From: edward Date: Thu, 14 Jul 2016 04:25:12 +0000 (+0800) Subject: NotifySmtpCheck.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e1758cc3e956e814a2550a5a9416c141a4253dfd NotifySmtpCheck.php --- 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;