[wp-trac] [WordPress Trac] #18926: Provide with the ability to monitor emailing failures

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 27 10:49:15 UTC 2012


#18926: Provide with the ability to monitor emailing failures
-------------------------+-----------------------------
 Reporter:  npetetin     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Mail         |     Version:  3.2.1
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by soulseekah):

 I have been thinking a lot about the issue of getting error messages from
 {{{ wp_mail }}} lately and stumbled upon this ticket today, decided to
 explore the problem-solution space a bit with a small and mostly obvious
 article.

 http://codeseekah.com/2012/02/27/getting-error-feedback-from-wp_mail/

 I'm attaching two diffs that that pass a WP_Error object, instead of the
 exception as the internal implementation may change in the future. One
 using a filter, another using an action. Both are not too comfortable to
 use, but we can probably work something out from there + decide on a
 better hook name, probably specific to {{{ wp_mail }}}, again, in case
 internal implementation changes.

 Probably missing something, ready to discuss further.

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


More information about the wp-trac mailing list