Mayfly gives QA teams private test inboxes. Any address on a test domain works the moment mail is sent to it, with no mailbox to create, and Mayfly picks out the code or link in each mail. It only receives mail, and deletes it after a set number of days.

An Araval product

Testing a sign-up, a one-time code or a password reset means a real mail has to arrive somewhere a test can read it.

Teams often use a shared mailbox or a public throwaway inbox, or switch the step off in test. Mayfly gives your tests their own addresses instead. Any address on the test domain works the moment mail is sent to it, so a test can sign up as run42.user1@qa.acme.test and then read the code from the mail.

Any address. No mailbox to create.

  • Your app sends real mail through its own provider, so the test covers real delivery.
  • Any address on the test domain is accepted the moment mail is sent to it. Each test run can use new ones.
  • Mayfly parses each mail as it arrives and picks out the one-time code and the links.
  • The mail is deleted automatically when its retention period ends. Nothing is kept after that.
MayflyTest mail · qa.acme.testIllustrative
  • run42.user1@qa.acme.testYour Acme verification codeReceived 09:41:07 · Code 482910
  • run42.user2@qa.acme.testYou’re invited to join AcmeLink found · 09:40:52
  • run41.user1@qa.acme.testReset your Acme passwordLink found · 09:12:30
  • run40.user1@qa.acme.testWelcome to AcmeDeleted in 6 days
Illustrative. Every address and value is made up.

How a test reads the code.

The test triggers the mail, then asks Mayfly to wait for it. The reply carries the code, ready to type into the form.

  • The test notes the time before the step that sends mail, and passes it as since, so a second code is never mistaken for the first.
  • The call waits for a matching mail, for up to 120 seconds, and returns once it arrives.
  • The reply holds the code and how sure Mayfly is of it, the links, the text and the HTML.
signup.spec.ts
const startedAt = new Date().toISOString();await page.click("#send-code");const res = await fetch(  `${MAYFLY}/api/v1/wait?to=run42.user1@qa.acme.test&since=${startedAt}&timeout=30`,  { headers: { Authorization: `Bearer ${API_KEY}` } },);const mail = await res.json();await page.fill("#otp", mail.otp.value);

Built to receive, never to send.

  • Mayfly never sends, replies to or forwards mail, so it cannot be used to send spam.
  • Mail for a domain that is not set up in Mayfly is refused.
  • Links in a mail are never fetched, so a one-time link is left unused for your test to open.
  • Scripts and remote images are stripped from the HTML, so a mail cannot load anything from its sender.
  • Addresses such as admin@ and postmaster@ are held back on every domain, so nobody can use them to prove they own it.
Test mail only

Made for test mail, not real customer data.

Have your tests sign up made-up people, with made-up details, as you would in any test environment.

What it does.

  • Any address on a test domain set up in Mayfly accepts mail, with no mailbox to create
  • Each mail is saved before Mayfly accepts it, so accepted mail is not lost
  • Each mail is parsed into its text, HTML, headers and links
  • Mail of up to 25 MB is accepted
  • Each sending server and each address has a rate limit, so one runaway test cannot flood the inbox
  • Senders can deliver over STARTTLS, encrypted in transit

Plans and pricing.

Paid plans are priced by monthly mail, with unlimited users on all of them.

Free to startSign up on the free Developer plan, and upgrade from Billing when you need more.

Show prices

Developer

Free

Mail a month
500
Mail kept for
1 day
Users
1
Your own domains
No
API with wait-for-mail and OTP extraction
Yes
Webhooks and attachments
No
Single sign-on
No

15,000 mail

India, plus GST

₹499 a month

₹399 a month, billed yearly

Outside India, US$

$6 a month

$5 a month, billed yearly

Mail a month
15,000
Mail kept for
7 days
Users
Unlimited
Your own domains
Yes
API with wait-for-mail and OTP extraction
Yes
Webhooks and attachments
Yes
Single sign-on
No

40,000 mail

India, plus GST

₹1,499 a month

₹1,199 a month, billed yearly

Outside India, US$

$19 a month

$15 a month, billed yearly

Mail a month
40,000
Mail kept for
30 days
Users
Unlimited
Your own domains
Yes
API with wait-for-mail and OTP extraction
Yes
Webhooks and attachments
Yes
Single sign-on
No

100,000 mail

India, plus GST

₹3,999 a month

₹3,199 a month, billed yearly

Outside India, US$

$49 a month

$39 a month, billed yearly

Mail a month
100,000
Mail kept for
90 days
Users
Unlimited
Your own domains
Yes
API with wait-for-mail and OTP extraction
Yes
Webhooks and attachments
Yes
Single sign-on
Yes

500,000 mail

India, plus GST

₹11,999 a month

₹9,599 a month, billed yearly

Outside India, US$

$149 a month

$119 a month, billed yearly

Mail a month
500,000
Mail kept for
90 days
Users
Unlimited
Your own domains
Yes
API with wait-for-mail and OTP extraction
Yes
Webhooks and attachments
Yes
Single sign-on
Yes
  • What counts: only mail that passes spam filtering counts toward your limit.
  • Going over the limit: paid plans keep receiving up to twice their limit, then senders get temporary rejections. We’d ask you to upgrade after two months over the limit.
  • Above 500,000 mail a month: we’d give you a custom quote.

Testing sign-up, OTP or password reset mail? Start on the free plan.