wp-mail.php WordPress Action Hook
The wp-mail.php hook is a powerful way to customize how your WordPress site sends email. This hook allows you to modify the headers, content, and attachments of outgoing email. You can use this hook to add a custom sender name or email address, add BCC or CC recipients, or even add custom HTML or plain text content to your outgoing emails. This hook is also useful for debugging email issues on your WordPress site.
do_action( 'wp-mail.php' ) #
Fires to allow a plugin to do a complete takeover of Post by Email.