Get mail in a web test

Verify that your application really sends an email. The step waits for it to land in a test mailbox and fails if nothing arrives in time.

Use it on flows that end with an email: a welcome message, an order confirmation, an invoice. The email is attached to the step result, so you can read it when you review the run. To reuse what is inside it, use Get email code or Get email link instead.

Parameters

ParameterRequiredDescription
MailboxYesThe test mailbox address that should receive the email.
Ignore error on this stepNoThe run continues with the next step if no email arrives. Default: off.

Results and metrics

  • Email content: the received email is attached to the step result, so you can read it when reviewing the run.
  • Timing: start, end, and duration (in seconds). The duration tells you how long delivery took.
  • Status: failed if no email arrives in the mailbox.

See Email & SMS in tests for how test mailboxes work and how to address them.

What's next?

Get email code

Extract a verification code from the email instead

Get email link

Extract a link from the email and continue the flow

Last updated on