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_data

An array containing the email recipient(s), subject, message, headers, and attachments.<br>

  • 'to'
    (string[]) Email addresses to send message.<br>
  • 'subject'
    (string) Email subject.<br>
  • 'message'
    (string) Message contents.<br>
  • 'headers'
    (string[]) Additional headers.<br>
  • 'attachments'
    (string[]) Paths to files to attach.<br>


Source

File: wp-includes/pluggable.php

View on GitHub


Changelog

Changelog
Version Description
5.9.0 Introduced.