Interacting with emails
Use DoesQA inboxes and Mail Test Steps to test registration, password reset, and other email journeys.
Last updated
Use DoesQA inboxes and Mail Test Steps to test registration, password reset, and other email journeys.
DoesQA gives each Test Case an inbox. Your Flow can enter that address in the application, wait for the message, open it, and continue the journey from a link or code inside the email.
Use the Flow Builder for this walkthrough.
Prefer $testEmail with the Test Case inbox for journeys that send one email to one test. Use $accountEmail only when you deliberately want a shared mailbox.
$randomEmail is a generated address outside DoesQA mailboxes. Use a DoesQA Value when the Flow will wait for or open the message.
In the step that fills the application's email field, use $testEmail with Set value.

That sends the application to the Test Case inbox for this Run.
Continue the journey until the application should send the message, such as submitting registration or requesting a password reset. For full walkthroughs, see Test registration and email verification and Test a forgotten-password flow.
Add Wait for email from the Mail family.

Set Inbox to Test Case.
Leave Type as New when any new message is enough.
Or set Type to Custom, choose Subject or From, and match wording your application actually sends.
In advanced settings, check End Offset. The default is five minutes. Raise it when the application usually takes longer to send.
Add Open email.

Set Inbox to Test Case.
Choose Latest for the newest matching message, or Custom with Subject or From when you need a specific one.
After Open email, the message body is the active page. Use normal Action and Check Test Steps to click a link, assert text, or store a code into the Value Store.

When you are finished with the message, add Close inbox to return to the application window.

Pro tip: Open Mail in the left navigation to inspect the Account inbox or a Test Case inbox while you are building the Flow.

Type: New
Waits for any email that arrives in the time window
Type: Custom
Waits until Subject, From, or another property matches your Value
End Offset
How long Wait for email keeps checking, up to twenty minutes
Start Offset
How far back the wait looks, such as from Test Start
Use Subject or From filters when the inbox may receive more than one message. Keep the comparison close to the real email text.
Last updated