Skip to content

boolean_smtp_oauth_refresh_failed

Fires after an OAuth token refresh fails, once retries are exhausted.

action Tier A Since 1.0.0

Listened to by {@see \BooleanSmtp\Providers\MailServiceProvider::onOAuthRefreshFailed()} to send a failure notification.

Signature

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

Parameters

ParameterTypeDescription
$dataarray{ connection_id: int, driver: string, error_code: string, error_message: string, attempts: int, response_time_ms: int, recoverable: bool }Failure details.

Fires in

Example

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

Next steps