[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
Wed Sep 3 14:00:23 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:  needs-unit-tests has-test-info has-  |     Focuses:
  patch                                          |
-------------------------------------------------+-------------------------

Comment (by tusharbharti):

 Hi @jdeep, for list of emails you can use
 https://github.com/WordPress/gutenberg/pull/70709/files#diff-
 97d7e31909f55f8a55039aba5abc9c00942ee379595ab293be5accdad0886e1d

 though some changes are that
 `1234567890123456789012345678901234567890123456789012345678901234+x at wordpress.org`
 will counted as valid even though it isn't because when we had a
 discussion regarding email lengths it was agreed upon to not break
 previous supported email listing that had local part more than 64 chars
 long.

 Ref: https://github.com/WordPress/wordpress-
 develop/pull/5237#discussion_r2256827791

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


More information about the wp-trac mailing list