0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00

Comment about AUTH PLAIN format

This commit is contained in:
Marcus Bointon 2021-03-19 22:18:08 +01:00
parent 6b6badad3f
commit f037388959
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24

View File

@ -553,6 +553,8 @@ class SMTP
}
//Send encoded username and password
if (
//Format from https://tools.ietf.org/html/rfc4616#section-2
//We skip the first field (it's forgery), so the string starts with a null byte
!$this->sendCommand(
'User & Password',
base64_encode("\0" . $username . "\0" . $password),