From 54b2596ff87c63083c03117a82c753c1c5542b5b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 6 Aug 2013 13:51:39 +0000 Subject: [PATCH] send reset command after failure while failing when adding addresses --- phpgwapi/inc/class.smtp.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpgwapi/inc/class.smtp.php b/phpgwapi/inc/class.smtp.php index 8cefb83e11..55803156f3 100644 --- a/phpgwapi/inc/class.smtp.php +++ b/phpgwapi/inc/class.smtp.php @@ -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,