|wp-includes/pluggable.php: wp_mail()|| |
Sends an email, similar to PHP’s mail function.
Fires after PHPMailer is initialized.
(PHPMailer) The PHPMailer instance (passed by reference).
The wp_mail() function relies on the PHPMailer class to send email through PHP’s
phpmailer_init action hook allows you to hook to the phpmailer object and pass in your own arguments.
This action is initiated with `do_action_ref_array` rather than `do_action`. You still hook to it with `do_action`. However, there are some notable differences:
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.