[wp-trac] [WordPress Trac] #23291: wp_mail should handle phpmailer exceptions instead of ignoring them
WordPress Trac
noreply at wordpress.org
Fri Jan 25 07:04:37 UTC 2013
#23291: wp_mail should handle phpmailer exceptions instead of ignoring them
-----------------------------+--------------------------
Reporter: mark-k | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: 3.5 | Severity: normal
Keywords: |
-----------------------------+--------------------------
Right now code in wp_mail that call phpmailer looks like
{{{
try {
$phpmailer->Send();
} catch ( phpmailerException $e ) {
return false;
}
}}}
or worse (not failing at all).
Yesterday had to hack core files to find out that an email address did not
have a valid email format. Exceptions should either propagate in some way,
or be reported to an error log.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23291>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list