[wp-trac] [WordPress Trac] #51030: Error in wp_mail function

WordPress Trac noreply at wordpress.org
Wed Aug 19 12:17:58 UTC 2020


#51030: Error in wp_mail function
------------------------------------------+---------------------
 Reporter:  hichembelhadj                 |       Owner:  (none)
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  5.5.1
Component:  Mail                          |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+---------------------

Comment (by ayeshrajans):

 `is_email` was used because the follow up ticket to PHPMailer 6 was that
 certain emails that were allowed by `iz_email` were not accepted by
 PHPMailer, so using is_email() to validate the emails was sensible.

 I doubt MTAs would accept `root at localhost` as valid address in production
 use cases, so I still believe using `is_email` provides a safe bar to
 validate email addresses.

 In either case, is_email is mostly used for front end uses, so it should
 be strict to only accept real life email addresses as opposed to pure RFC
 addresses.

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


More information about the wp-trac mailing list