do_action( 'wp_mail_failed', WP_Error $error )
Fires after a phpmailerException is caught.
Description Description
Parameters Parameters
Source Source
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Debugging wp_mail() can be a lot easier with this simple method.
It will display a more helpful error message (the original phpmailer error) than Wordpress will by default.
Just add this function to display the real wp_mail() error.
But only use this for debugging.