wait_until_sent
Check delivery status of a sent email by waiting for the queue to process it, returning success or failure details with retry state.
Instructions
Find out whether a mail you sent was actually delivered.
send_email only means "accepted for delivery"; the mail goes out later on a queue. Call this with the message_id send_email returned to learn the outcome.
Returns delivered: true once it went out. If it is still queued when the timeout
elapses you get timed_out: true with delivered: false — that is NOT a failure and
you must NOT send the mail again; the queue is still retrying. status tells you
whether it has been attempted yet (queued) or attempted and rescheduled (retrying),
and error carries what the last attempt reported. Permanent failure comes back the
same way, as status: failed with the reason in error — read note before you
resend anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| timeout | No | ||
| message_id | Yes |