Skip to content

boolean_smtp_before_send

Fires immediately before a message is sent, after the connection and transport have been configured.

action Tier A Since 1.0.0

Signature

add_action( 'boolean_smtp_before_send', $callback, 10, 1 );

Parameters

ParameterTypeDescription
$dataarray{to: string, subject: string, connection: array{id: int, driver: string}}Message and connection details for the send about to happen.

Fires in

Example

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

Next steps