diff options
| author | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-01-29 20:07:12 +0000 |
|---|---|---|
| committer | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-01-29 20:07:12 +0000 |
| commit | a3566b4243efb6e19e98dd70e40c78d3d0131094 (patch) | |
| tree | 68bde519bed4ac8283a7a653bd2f0c6983fc96e4 | |
| parent | 088b1af93c292ece4d0b6554881dcf9d2022e5ec (diff) | |
* included error code in error message
* returned directly from the SMTP on authentication error
* useful for debugging SMTP errors
git-svn-id: https://svn.roundcube.net/trunk@970 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/rcube_smtp.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_smtp.inc b/roundcubemail/program/include/rcube_smtp.inc index 256a33bc0..f1402742e 100644 --- a/roundcubemail/program/include/rcube_smtp.inc +++ b/roundcubemail/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; } } |
