Fixed typo and added strict comparison on response code
This commit is contained in:
parent
8ca031797f
commit
5fc635571b
|
|
@ -657,9 +657,9 @@ class SMTP
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the server answer with a code 334, send and empty line an wait for a code 235
|
// If the server answer with a code 334, send an empty line and wait for a code 235
|
||||||
if (
|
if (
|
||||||
substr($this->last_reply, 0, 3) == 334
|
substr($this->last_reply, 0, 3) === '334'
|
||||||
&& $this->sendCommand('AUTH End', '', 235)
|
&& $this->sendCommand('AUTH End', '', 235)
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue