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 07:57:10 +00:00
parent 50c43deec9
commit 6fb84bb8cd

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,