boolean_smtp_test_email_sent
Fires after the admin test-email tool has attempted a send.
action Tier A Since 1.0.0
Fires whether the send succeeded or failed; a simulated send (simulation mode on) reports `success` true with the simulation as its provider.
Signature
add_action( 'boolean_smtp_test_email_sent', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$result | array<string, mixed> | |
to | string | Recipient address. |
subject | string | Subject line. |
connection_id | int|null | Id of the connection used, `null` when none was resolved. |
success | bool | Whether the message was accepted for delivery. |
error | string|null | Failure message, `null` on success. |
elapsed_ms | int | Time the attempt took, in milliseconds. |
Fires in
app/Http/Controllers/TestEmailController.php:160—BooleanSmtp\Http\Controllers\TestEmailController::send()
Example
add_action( 'boolean_smtp_test_email_sent', function ( array $result ) { // 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.