Bug #80751 [Opn->Fbk]: Comma in recipient name breaks email delivery
| From: | requinix@php.net | Date: | Sun, 14 Feb 2021 21:19:59 +0000 |
| Subject: | Bug #80751 [Opn->Fbk]: Comma in recipient name breaks email delivery | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232159@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80751&edit=1
ID: 80751
Updated by: requinix@php.net
Reported by: camaro396 at yandex dot ru
Summary: Comma in recipient name breaks email delivery
-Status: Open
+Status: Feedback
Type: Bug
Package: Mail related
Operating System: Windows Server 2012 R2
PHP Version: 7.4.15
Block user comment: N
Private report: N
New Comment:
What is the remote mail server software? The transcript suggests that it isn't parsing
"Lastname, firstname" correctly as a quoted string.
Previous Comments:
------------------------------------------------------------------------
[2021-02-14 15:10:01] camaro396 at yandex dot ru
Description:
------------
Comma in recipient name leads to a malformed SMTP FROM command.
Test script:
---------------
mail('"Lastname, firstname" <lastname_firstname@example.com>',
'TEST', 'TEST', 'From: "Test" <test@example.com>');
Expected result:
----------------
Message sent successfully
Actual result:
--------------
Message not sent.
SMTP transcript looks like this
"SMTPD" 55224 293364 "2021-02-04
05:34:12.678" "xx.xx.xx.xx" "SENT: 220 mx.example.com"
"SMTPD" 56232 293364 "2021-02-04
05:34:12.678" "xx.xx.xx.xx" "RECEIVED: HELO HOSTNAME"
"SMTPD" 56232 293364 "2021-02-04
05:34:12.678" "xx.xx.xx.xx" "SENT: 250 Hello."
"SMTPD" 55224 293364 "2021-02-04
05:34:12.678" "xx.xx.xx.xx" "RECEIVED: MAIL
FROM:<sender@example.com>"
"SMTPD" 55224 293364 "2021-02-04
05:34:12.678" "xx.xx.xx.xx" "SENT: 250 OK"
"SMTPD" 55224 293364 "2021-02-04
05:34:12.678" "xx.xx.xx.xx" "RECEIVED: RCPT TO:<"Lastname>"
"SMTPD" 55224 293364 "2021-02-04
05:34:12.678" "xx.xx.xx.xx" "SENT: 550 A valid address is required."
"SMTPD" 55224 293364 "2021-02-04
05:34:12.678" "xx.xx.xx.xx" "RECEIVED: QUIT"
"SMTPD" 55224 293364 "2021-02-04
05:34:12.678" "xx.xx.xx.xx" "SENT: 221 goodbye"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80751&edit=1