提交 4bc49524 编写于 作者: D devil_gong

debug

上级 e5456f31
......@@ -1770,9 +1770,10 @@ class PHPMailer
*/
protected function smtpSend($header, $body)
{
try {
$bad_rcpt = [];
if (!$this->smtpConnect($this->SMTPOptions)) {
throw new \Exception($this->lang('smtp_connect_failed'), self::STOP_CRITICAL);
throw new Exception($this->lang('smtp_connect_failed'), self::STOP_CRITICAL);
}
//Sender already validated in preSend()
if ('' == $this->Sender) {
......@@ -1841,6 +1842,12 @@ class PHPMailer
}
return true;
} catch (Exception $exc) {
$lastexception = $exc;
$this->edebug($exc->getMessage());
// We must have connected, but then failed TLS or Auth, so close connection nicely
$this->smtp->quit();
}
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册