[wp-trac] [WordPress Trac] #25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
WordPress Trac
noreply at wordpress.org
Fri Dec 30 06:43:09 UTC 2016
#25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
-------------------------------------------------+-------------------------
Reporter: layotte | Owner:
Type: defect (bug) | SergeyBiryukov
Priority: normal | Status: reviewing
Component: Mail | Milestone: Future
Severity: normal | Release
Keywords: has-patch dev-feedback needs- | Version: 3.8
testing | Resolution:
| Focuses:
-------------------------------------------------+-------------------------
Comment (by dd32):
In [changeset:"39655"]:
{{{
#!CommitTicketReference repository="" revision="39655"
Mail: Ensure that any `phpmailerException` exceptions generated by
`setFrom()` are caught to avoid PHP Fatal errors.
This change avoids a PHP fatal error that can be encountered when the
specified (or generated) source email is an invalid address, such as
`wordpress at _`, it makes no effort to set a valid source, only avoid the
fatal error.
See #25239 for correcting the email address.
Fixes #39360.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25239#comment:57>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list