include 250 in checking the error-codes when sending data, as 250 indicates success -> OK (354 indicates intermediate status, and was the only status checked for)

This commit is contained in:
Klaus Leithoff 2010-09-06 08:03:25 +00:00
parent 21300696eb
commit ed68774f22

View File

@ -345,7 +345,7 @@ class SMTP {
error_log(__METHOD__.' Line:'.__LINE__."->". "SMTP -> FROM SERVER:" . $rply . $this->CRLF );
}
if($code != 354) {
if($code != 354 && $code != 250) {
$this->error =
array("error" => "DATA command not accepted from server",
"smtp_code" => $code,