Fixed typo and added strict comparison on response code

This commit is contained in:
LE MOINE Laurent 2025-06-18 16:19:12 +02:00
parent 8ca031797f
commit 5fc635571b
1 changed files with 2 additions and 2 deletions

View File

@ -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;