On this page
do_action( 'wp_mail_succeeded', array $mail_data )
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.
tostring[]Email addresses to send message.subjectstringEmail subject.messagestringMessage contents.headersstring[]Additional headers.attachmentsstring[]Paths to files to attach.
Source
File: wp-includes/pluggable.php. View all references
do_action( 'wp_mail_succeeded', $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 |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_mail_succeeded