Skip to content

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

ParameterTypeDescription
$phpmailer\PHPMailer\PHPMailer\PHPMailerMailer instance that was logged.
$connection\BooleanSmtp\Models\ConnectionConnection the message is being sent through.

Fires in

Example

boolean_smtp_mail_attempt_recorded.php
add_action( 'boolean_smtp_mail_attempt_recorded', function ( \PHPMailer\PHPMailer\PHPMailer $phpmailer, \BooleanSmtp\Models\Connection $connection ) {
// React to the event.
}, 10, 2 );

Next steps