do_action( ‘wp_mail_succeeded’, array $mail_data )

In this article

Fires after PHPMailer has successfully sent an email.

Description

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.

Parameters

$mail_dataarray
An array containing the email recipient(s), subject, message, headers, and attachments.
  • to string[]
    Email addresses to send message.
  • subject string
    Email subject.
  • message string
    Message contents.
  • headers string[]
    Additional headers.
  • attachments string[]
    Paths to files to attach.

Source

do_action( 'wp_mail_succeeded', $mail_data );

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.