Fix checking for wrong response code during a CRAM-MD5 AUTH transaction, see #46. Thanks to @Hywan

This commit is contained in:
Synchro 2013-04-22 17:28:09 +02:00
parent 548a376f4b
commit fbafeb47c3
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,7 @@
* Add Ukranian translation from @Krezalis
* Support for do_verp
* Fix bug in CRAM-MD5 AUTH
## Version 5.2.6 (April 11th 2013)
* Reflect move to PHPMailer GitHub organisation at https://github.com/PHPMailer/PHPMailer

View File

@ -381,7 +381,6 @@ class SMTP {
$rply = $this->get_lines();
$code = substr($rply, 0, 3);
if($code != 334) {
$this->error =
array('error' => 'AUTH not accepted from server',
@ -444,7 +443,7 @@ class SMTP {
$rply = $this->get_lines();
$code = substr($rply, 0, 3);
if($code != 334) {
if($code != 235) {
$this->error =
array('error' => 'Credentials not accepted from server',
'smtp_code' => $code,