do_action( 'wp_mail_failed', WP_Error $error )

Fires after a PHPMailer\PHPMailer\Exception is caught.

Parameters

$error

(WP_Error) A WP_Error object with the PHPMailerPHPMailerException message, and an array containing the mail recipient, subject, message, headers, and attachments.

Source

File: wp-includes/pluggable.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.