mail.sent automation events can perform actions after an outgoing message is sent by a worker.

Placeholders

The automation event dictionary starts with the following values:

Key Type Notes
message_* record The message record. Supports key expansion.

Outputs

(none)

Legacy behaviors

When both automations and legacy bot behaviors are active on the mail.sent event, they run in this order based on automation priority:

Priority Execution order
0–127 Automation runs before legacy behaviors
128–255 Automation runs after legacy behaviors

This ordering was introduced in 11.1.8. Prior to that version, automations always ran before legacy behaviors regardless of priority.