Skip to content

boolean_smtp_test_email_sent

Fires after the admin test-email tool has attempted a send.

action Tier A Since 1.0.0

Fires whether the send succeeded or failed; a simulated send (simulation mode on) reports `success` true with the simulation as its provider.

Signature

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

Parameters

ParameterTypeDescription
$resultarray<string, mixed>
  tostringRecipient address.
  subjectstringSubject line.
  connection_idint|nullId of the connection used, `null` when none was resolved.
  successboolWhether the message was accepted for delivery.
  errorstring|nullFailure message, `null` on success.
  elapsed_msintTime the attempt took, in milliseconds.

Fires in

Example

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

Next steps