Skip to content

Commit

Permalink
Fix checking for wrong response code during a CRAM-MD5 AUTH transacti…
Browse files Browse the repository at this point in the history
…on, see PHPMailer#46. Thanks to @Hywan
  • Loading branch information
Synchro committed Apr 22, 2013
1 parent 548a376 commit fbafeb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions class.smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ public function Authenticate($username, $password, $authtype='LOGIN', $realm='',
$rply = $this->get_lines();
$code = substr($rply, 0, 3);


if($code != 334) {
$this->error =
array('error' => 'AUTH not accepted from server',
Expand Down Expand Up @@ -444,7 +443,7 @@ public function Authenticate($username, $password, $authtype='LOGIN', $realm='',
$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,
Expand Down

0 comments on commit fbafeb4

Please sign in to comment.