On this page
do_action( 'wp_mail_failed', WP_Error $error )
Fires after a PHPMailer\PHPMailer\Exception is caught.
Parameters
Source
File: wp-includes/pluggable.php. View all references
do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage(), $mail_data ) );
Related
Used By
| Used By | Description |
|---|---|
| wp_mail() wp-includes/pluggable.php | Sends an email, similar to PHP’s mail function. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_mail_failed