# boolean_smtp_email_queued

> Fires after an email has been added to the queue.

Action · Tier A · Since 1.0.0



## Signature

```php
add_action( 'boolean_smtp_email_queued', $callback, 10, 1 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$payload` | `array<string, mixed>` |  |
| &nbsp;&nbsp;`id` | `int` | Id of the queued email log. |
| &nbsp;&nbsp;`to` | `string` | Recipient address(es). |
| &nbsp;&nbsp;`subject` | `string` | Email subject. |

## Fires in

- [includes/boolean-smtp-queue.php:74](https://github.com/booleanpress/boolean-smtp-src/blob/main/includes/boolean-smtp-queue.php#L74) — `::boolean_smtp_queue()`

## Example

```php
add_action( 'boolean_smtp_email_queued', function ( array $payload ) {
    // React to the event.
}, 10, 1 );
```
