boolean_smtp_email_sent
Fires after a message has been delivered successfully.
action Tier A Since 1.0.0
Fired for direct sends and for queued sends alike, after the email log entry has been marked delivered; the payload has passed through `boolean_smtp_email_event_data`.
Signature
add_action( 'boolean_smtp_email_sent', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$payload | array<string, mixed> | |
id | int | Id of the email log entry. |
to | string | Recipient address(es), comma separated. |
subject | string | Subject line. |
status | string | Always `delivered`. |
provider | string | Provider of the connection that delivered the message. |
timestamp | int | Unix timestamp of the delivery. |
log_id | int | Id of the email log entry (same as `id`). |
connection_id | int|null | Id of the connection used, `null` when unknown. |
Fires in
app/Jobs/ProcessQueueJob.php:289—BooleanSmtp\Jobs\ProcessQueueJob::handle()app/Services/Mailer/EmailLogSendLifecycle.php:155—BooleanSmtp\Services\Mailer\EmailLogSendLifecycle::onWpMailSucceeded()
Example
add_action( 'boolean_smtp_email_sent', function ( array $payload ) { // React to the event.}, 10, 1 );Next steps
- Delivery lifecycle — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.