Skip to content

boolean_smtp_health_check_result

Fires after the scheduled health check has probed one connection and recorded the outcome on it.

action Tier A Since 1.0.0

Fires for healthy and unhealthy connections alike, so a monitoring integration can track every check; the plugin's own alert channels only react to failures.

Signature

add_action( 'boolean_smtp_health_check_result', $callback, 10, 3 );

Parameters

ParameterTypeDescription
$connection\BooleanSmtp\Models\ConnectionThe probed connection, with its health status updated.
$healthyboolWhether the probe succeeded.
$errorstring|nullThe probe's error message, `null` when healthy.

Fires in

Example

boolean_smtp_health_check_result.php
add_action( 'boolean_smtp_health_check_result', function ( \BooleanSmtp\Models\Connection $connection, bool $healthy, ?string $error ) {
// React to the event.
}, 10, 3 );

Next steps