Skip to content

boolean_smtp_mailer_resolved

Fires after the mailer has been fully configured for a send, with diagnostic details about the resolved connection and transport.

action Tier B Since 1.0.0

Signature

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

Parameters

ParameterTypeDescription
$diagnosticsarray{ connection_id: int, connection_name: string, connection_type: string, delivery_mode: string, mailer: string, host: string, port: int, smtp_auth: bool, encryption: string, from: string, sender: string, from_name: string }Diagnostic snapshot of the resolved mailer configuration.

Fires in

Example

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

Next steps