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

WordPress Trac noreply at wordpress.org
Wed Sep 16 20:12:06 UTC 2020


#23291: wp_mail should handle phpmailer exceptions instead of ignoring them
-------------------------+----------------------
 Reporter:  mark-k       |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Mail         |     Version:  3.5
 Severity:  normal       |  Resolution:  invalid
 Keywords:  has-patch    |     Focuses:
-------------------------+----------------------
Changes (by desrosj):

 * keywords:  has-patch dev-feedback => has-patch
 * status:  new => closed
 * resolution:   => invalid


Comment:

 It looks like this was solved in #18926. [34221] adds the `wp_mail_failed`
 action that gets fired when a PHPMailer related exception is encountered.
 Plugins and custom code can hook into this action to read or log the
 `WP_Error` object that is passed.

 If there are any exceptions where the action hook is not fired but is
 desired, please open a new ticket.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/23291#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list