boolean_smtp_mail_attempt_recorded
Fires after a send attempt has been recorded in the email log.
action Tier B Since 1.0.0
Signature
add_action( 'boolean_smtp_mail_attempt_recorded', $callback, 10, 2 );Parameters
| Parameter | Type | Description |
|---|---|---|
$phpmailer | \PHPMailer\PHPMailer\PHPMailer | Mailer instance that was logged. |
$connection | \BooleanSmtp\Models\Connection | Connection the message is being sent through. |
Fires in
app/Services/Mailer/MailerManager.php:346—BooleanSmtp\Services\Mailer\MailerManager::configure()
Example
add_action( 'boolean_smtp_mail_attempt_recorded', function ( \PHPMailer\PHPMailer\PHPMailer $phpmailer, \BooleanSmtp\Models\Connection $connection ) { // React to the event.}, 10, 2 );Next steps
- Mail pipeline — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.