send reset command after failure while failing when adding addresses

This commit is contained in:
Klaus Leithoff 2013-08-06 13:51:39 +00:00
parent 6362e257b1
commit 54b2596ff8

View File

@ -576,6 +576,7 @@ class SMTP {
}
if($code != 250) {
$this->Reset();
$this->error =
array("error" => "MAIL not accepted from server",
"smtp_code" => $code,
@ -671,6 +672,7 @@ class SMTP {
}
if($code != 250 && $code != 251) {
$this->Reset();
$this->error =
array("error" => "RCPT not accepted from server",
"smtp_code" => $code,