* included error code in error message

* returned directly from the SMTP on authentication error
   * useful for debugging SMTP errors
release-0.6
till 17 years ago
parent a5b598241f
commit 3f8d85e8de

@ -112,7 +112,7 @@ function smtp_mail($from, $recipients, &$headers, &$body, &$response)
if (PEAR::isError($result)) if (PEAR::isError($result))
{ {
smtp_reset(); smtp_reset();
$response[] .= "Authentication failure: ".$result->getMessage(); $response[] .= 'Authentication failure: ' . $result->getMessage() . ' (Code: ' . $result->getCode() . ')';
return FALSE; return FALSE;
} }
} }

Loading…
Cancel
Save