wp_mail_succeeded WordPress Action Hook

The wp_mail_succeeded hook is called whenever a mail is successfully sent using the wp_mail function.

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.


Top ↑

Parameters

$mail_data

(array)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.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.