0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 10:02:14 +02:00

low-level SMTP error handling from 6.0 branch (#1012) (#1041)

This commit is contained in:
lewa 2017-05-11 02:27:15 +03:00 committed by Marcus Bointon
parent afb1302611
commit 7280a55d58

View File

@ -989,7 +989,10 @@ class SMTP
public function client_send($data)
{
$this->edebug("CLIENT -> SERVER: $data", self::DEBUG_CLIENT);
return fwrite($this->smtp_conn, $data);
set_error_handler(array($this, 'errorHandler'));
$result = fwrite($this->smtp_conn, $data);
restore_error_handler();
return $result;
}
/**