wp_mail_failed

SummerySummery

Fires after a phpmailerException is caught.

Syntax

do_action( 'wp_mail_failed', WP_Error $error )

ParametersParameters

$error

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

SourceSource

File: wp-includes/pluggable.php

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top