diff options
author | till <till@php.net> | 2008-01-29 20:07:12 +0000 |
---|---|---|
committer | till <till@php.net> | 2008-01-29 20:07:12 +0000 |
commit | 3f8d85e8de08738860c6e9df66084f274c776b2b (patch) | |
tree | a700efd98975ba999705c520d4469e0a420f6be7 | |
parent | a5b598241f368187e8ddee7372da796e81fe2a90 (diff) |
* included error code in error message
* returned directly from the SMTP on authentication error
* useful for debugging SMTP errors
-rw-r--r-- | program/include/rcube_smtp.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_smtp.inc b/program/include/rcube_smtp.inc index 256a33bc0..f1402742e 100644 --- a/program/include/rcube_smtp.inc +++ b/program/include/rcube_smtp.inc @@ -112,7 +112,7 @@ function smtp_mail($from, $recipients, &$headers, &$body, &$response) if (PEAR::isError($result)) { smtp_reset(); - $response[] .= "Authentication failure: ".$result->getMessage(); + $response[] .= 'Authentication failure: ' . $result->getMessage() . ' (Code: ' . $result->getCode() . ')'; return FALSE; } } |