Skip to content

boolean_smtp_mail_connection_resolved

Fires after a connection has been resolved for an outgoing message, before it is applied to PHPMailer.

action Tier A Since 1.0.0

Signature

add_action( 'boolean_smtp_mail_connection_resolved', $callback, 10, 2 );

Parameters

ParameterTypeDescription
$connection\BooleanSmtp\Models\ConnectionConnection resolved for this send.
$emailDataarray<string, mixed>Routing data (to, subject, from, content_type).

Fires in

Example

boolean_smtp_mail_connection_resolved.php
add_action( 'boolean_smtp_mail_connection_resolved', function ( \BooleanSmtp\Models\Connection $connection, array $emailData ) {
// React to the event.
}, 10, 2 );

Next steps