acpt/send_email
Fires after ACPT sends a form notification email
Type: Action
Fires after ACPT attempts to send a form notification email, whether or not the send actually succeeded.
Parameters
Parameter
Type
Description
$emailSent
bool
Whether the email was sent successfully
$envelope
\ACPT\Utils\Wordpress\Email\Envelope
The email envelope (recipients, subject, body, headers)
Usage
add_action("acpt/send_email", function(bool $emailSent, \ACPT\Utils\Wordpress\Email\Envelope $envelope){
// log or react to the email result
}, 10, 2);Last updated