From 5fc635571b3c1c9571711664fef68c89b8edd2ca Mon Sep 17 00:00:00 2001 From: LE MOINE Laurent Date: Wed, 18 Jun 2025 16:19:12 +0200 Subject: [PATCH] Fixed typo and added strict comparison on response code --- src/SMTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMTP.php b/src/SMTP.php index aebdc5e7..594f042d 100644 --- a/src/SMTP.php +++ b/src/SMTP.php @@ -657,9 +657,9 @@ class SMTP 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 ( - substr($this->last_reply, 0, 3) == 334 + substr($this->last_reply, 0, 3) === '334' && $this->sendCommand('AUTH End', '', 235) ) { return false;