[wp-trac] [WordPress Trac] #62940: wp_mail(): Address header parsing is not RFC-5322 complient and fails on quoted-string when including a "<", ">" or ", "

WordPress Trac noreply at wordpress.org
Fri Sep 12 12:26:32 UTC 2025


#62940: wp_mail(): Address header parsing is not RFC-5322 complient and fails on
quoted-string when including a "<", ">" or ","
-------------------------------------------------+-------------------------
 Reporter:  bhujagendra                          |       Owner:  jdeep
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Mail                                 |     Version:  2.1.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-test-info has-patch changes-     |     Focuses:
  requested has-unit-tests                       |
-------------------------------------------------+-------------------------
Changes (by SirLouen):

 * keywords:  needs-unit-tests has-test-info has-patch changes-requested =>
     has-test-info has-patch changes-requested has-unit-tests


Comment:

 Replying to [comment:24 jdeep]:
 > Yup that would work as well. Since the headers of `To`, `Reply-To`,
 `CC`, `BCC` are similar and differ only in the header type, we can have a
 single list of content (address list) for these headers and test them for
 each header.

 Looks more solid now.

 Ping me when you have updated the tests to the new version

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62940#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list