# 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

```php
add_action( 'boolean_smtp_mail_attempt_recorded', $callback, 10, 2 );
```

## Parameters

| Name | 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](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Mailer/MailerManager.php#L346) — `BooleanSmtp\Services\Mailer\MailerManager::configure()`

## Example

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