[wp-trac] [WordPress Trac] #51030: Error in wp_mail function
WordPress Trac
noreply at wordpress.org
Thu Aug 20 01:32:05 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 khag7):
Replying to [comment:7 ayeshrajans]:
>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.
I agree that is_email is the best choice for validating input from form
fields where we'd expect a "normal" email address. (i.e. "front end uses")
But "behind the scenes" it should be acceptable for PHPMailer to allow
`email at localhost`. After all, this issue was created specifically
''because'' the updates in 5.5 broke functionality for some users.
If changing the validation for wp_mail to use PHPMailer's 'html5'
validation instead of 'is_email' fixes the issue without creating any new
issues, it feels like the right solution.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51030#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list