[wp-trac] [WordPress Trac] #23291: wp_mail should handle phpmailer exceptions instead of ignoring them

WordPress Trac noreply at wordpress.org
Sun Jan 27 05:14:07 UTC 2013


#23291: wp_mail should handle phpmailer exceptions instead of ignoring them
-------------------------+------------------------------
 Reporter:  mark-k       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Mail         |     Version:  3.5
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by mark-k):

 Ok, different suggestion, what about holding the exceptions in a global
 (or accessed via function) array, something like $wp_mail_lasterrors, and
 in addition maybe call trigger_error if WP_DEBUG is defined.

 IMO set_error_handler is harder to use because theoretically anything that
 is called by wp_mail can also trigger an error and therefor your handler
 should be smart enough to filter out those errors. Not impossibly hard,
 just harder.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23291#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list