Skip to content

boolean_smtp_email_sent

Fires after a message has been delivered successfully.

action Tier A Since 1.0.0

Fired for direct sends and for queued sends alike, after the email log entry has been marked delivered; the payload has passed through `boolean_smtp_email_event_data`.

Signature

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

Parameters

ParameterTypeDescription
$payloadarray<string, mixed>
  idintId of the email log entry.
  tostringRecipient address(es), comma separated.
  subjectstringSubject line.
  statusstringAlways `delivered`.
  providerstringProvider of the connection that delivered the message.
  timestampintUnix timestamp of the delivery.
  log_idintId of the email log entry (same as `id`).
  connection_idint|nullId of the connection used, `null` when unknown.

Fires in

Example

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

Next steps