Action hook 'wp_mail_succeeded'
in WP Core File wp-includes/pluggable.php at line 567
Description
Fires after PHPMailer has successfully sent an email. The firing of this action does not necessarily mean that the recipient(s) received the email successfully. It only means that the `send` method above was able to process the request without any errors. }
Occurrences
Filename |
Line Number |
wp-includes/pluggable.php |
567 |
Parameters
Type |
Name |
Description |
array |
$mail_data |
{ An array containing the email recipient(s), subject, message, headers, and attachments. |
PHP Doc
/**
* Fires after PHPMailer has successfully sent an email.
*
* The firing of this action does not necessarily mean that the recipient(s) received the
* email successfully. It only means that the `send` method above was able to
* process the request without any errors.
*
* @since 5.9.0
*
* @param array $mail_data {
* An array containing the email recipient(s), subject, message, headers, and attachments.
*
* @type string[] $to Email addresses to send message.
* @type string $subject Email subject.
* @type string $message Message contents.
* @type string[] $headers Additional headers.
* @type string[] $attachments Paths to files to attach.
* }
*/