Testmail.app Alternative for Email Testing and Test Inboxes
A testmail.app alternative: namespaces and tags compared with an address per test, livequery with waitFor, plans from testmail.app's pages, and a migration.

testmail.app has a distinctive model: one namespace gives you an unlimited number of addresses, and the part of the address after the namespace is a tag you invent on the spot. A test sends to {namespace}.{tag}@inbox.testmail.app, then asks the API for mail with that tag. People look for a testmail.app alternative when they want an inbox per test rather than a tag in a shared namespace, SDKs instead of a GraphQL call, or agent inboxes in the same account. This guide compares the two on Mailcycle’s terms and shows a migration.
What we say about testmail.app below comes from its public pages, read on 26 and 27 November 2026. The pages are listed at the end.
How testmail.app works
The docs describe the namespace as a collection of mailboxes, essentially a wildcard that catches all emails sent to your_namespace.*@inbox.testmail.app. Tags need no registration. The tag parameter filters by exact match, tag_prefix filters by prefix, and the docs suggest a unique ID in the tag, or the timestamp_from parameter, to isolate a test.
Reading mail uses a JSON endpoint at https://api.testmail.app/api/json, which answers GET requests, or a GraphQL endpoint with a bearer token. A “live” query waits until at least one email is matched before returning. If one is already there, it returns at once, so timestamp_from, given in milliseconds, restricts the wait to new mail. After a minute of waiting, the API returns an HTTP 307 redirect to itself, so your client resends the query, and the docs recommend setting a timeout in your test suite.
Where an address per test differs
In Mailcycle a test creates a real address, and the address is the inbox. There is nothing to filter, because nothing else shares it. For a suite running in parallel, that removes a class of mistakes: two tests that pick the same tag, a stale message that matches a prefix, a clock difference that moves timestamp_from. The cost is one extra call to create the address, and the result is mail that only that test can see.
testmail.app plans, from its pricing page
Read on 26 November 2026 from https://testmail.app/pricing/. Prices are US dollars, shown for annual and monthly billing.
| Plan | Price | Emails a month | Retention | Namespaces |
|---|---|---|---|---|
| Free | $0 | 100 | 1 day | One random |
| Essential | $9 a month annual, $12 monthly | 10,000 | 1 to 3 days | One random |
| Pro | $29 annual, $39 monthly | 50,000 | 1 to 30 days | Unlimited custom |
| Enterprise | $89 annual, $129 monthly | 1,000,000 | Custom | Unlimited custom |
| Unlimited | $269 annual, $299 monthly | 10,000,000 | Enterprise features plus | Unlimited custom, custom domains |
The footnote says unlimited temporary surges are allowed, and that regularly exceeding an allowance means an upgrade.
Mailcycle plans for testing
Prices below are the ones on https://mailcycle.email/pricing/.
| Operator | Scale | Fleet | |
|---|---|---|---|
| Price a month | $15 | $19 | $99 |
| Addresses | 250 | 1,000 | 10,000 |
| Messages received a month | 250,000 | 750,000 | 4,000,000 |
| API keys and webhooks | Yes | Yes | Yes |
| Your own domains | From Scale | 10 | 50 |
Side by side
| testmail.app | Mailcycle | |
|---|---|---|
| Mail address model | Namespace plus a tag you choose | An address per test, created by API |
| Waiting for mail | A live query with a timeout you set | waitFor with a timeout, filtered by address |
| Retention | 1 to 30 days, depending on plan | 24 hours, 7, 30 or 90 days, your choice per address |
| Custom domains | Unlimited plan | Scale, $19 a month, 10 domains |
| Reading mail | JSON or GraphQL over HTTP | SDKs in nine languages, mail decrypted for you |
Translating a testmail.app test
The same sign-up check looks like this on both services.
On testmail.app, a test builds the address and polls:
curl "https://api.testmail.app/api/json?apikey=$KEY&namespace=$NS&tag=signup-42&livequery=true×tamp_from=$START"
On Mailcycle, a test creates the address and waits:
const address = await mc.addresses.create({ prefix: 'signup', retentionDays: 1 });
const since = new Date();
// ...submit address.emailAddress in the form...
const message = await mc.messages.waitFor({ inboxId: address.id, since, timeoutMs: 60_000 });
const code = message.text.match(/\b\d{6}\b/)![0];
| In testmail.app | In Mailcycle |
|---|---|
{namespace}.{tag}@inbox.testmail.app |
address.emailAddress from addresses.create() |
tag or tag_prefix filter |
inboxId on waitFor |
livequery=true |
messages.waitFor() |
timestamp_from |
since, which defaults to now |
| A client timeout, and handling the 307 redirect | timeoutMs, and a rejection with code: 'timeout' |
| An API key scoped to a namespace | An API key, plus your recovery phrase to open mail |
The since default means a test that takes the time before it sends cannot match old mail, much as timestamp_from does for testmail.app.
Isolating tests without tags
On a shared namespace, isolation depends on discipline: a unique tag per test, and timestamp_from to skip older mail. With an address per test, isolation is built in. The practical consequence is that retries and re-runs are safe: a re-run creates a new address, so a message left over from the failed run cannot satisfy it.
Reading the message
A Mailcycle message has from, fromName, replyTo, subject, text, html, safeHtml and attachments. safeHtml has remote images and embeds removed, as the apps show it. messages.attachment(message, 0) returns the bytes. The mail is decrypted on the machine that runs your test, using your recovery phrase, so keep that phrase as a CI secret.
Retention and cleanup
testmail.app’s docs say there is no delete function, and recommend isolating tests instead. In Mailcycle you can delete the address at the end of a test, which removes its mail, and you can set a short retention as a safety net. A 24 hour retention means a crashed run leaves nothing behind after a day.
Custom domains for your tests
If your staging environment allows mail only to certain domains, use a domain of your own. On Scale you add the domain under My domains, publish the TXT record, point the nameservers and choose address names. See Role addresses on your own domain for the steps.
Test cases that suit an address per test
- One-time codes. The test creates an address, signs up, waits for the message and reads the code. Because the address is new, there is only one message to find.
- Resends. Ask your app to resend the code and assert that a second message arrives at the same address, which is easy when nothing else shares the inbox.
- Rate limits. Trigger several sign-ups with distinct addresses and assert your app’s limits, without one test’s mail confusing another.
- Link expiry. Take the link from the first message, wait past the expiry, and assert the page refuses it.
- Attachments. Trigger an export, wait for the message, and fetch the attachment bytes with
messages.attachment(message, 0).
CI and parallel runs
A CI job usually runs tests in parallel across workers, and email is where parallel suites trip. With a shared namespace, every worker needs a unique tag scheme. With an address per test, each worker’s fixture creates its own address, and nothing is shared. Store the API key and recovery phrase as CI secrets, and set retentionDays: 1 on test addresses so anything a cancelled job leaves behind clears itself.
Timeouts and flaky waits
Email is asynchronous, so the wait is where flakiness shows. testmail.app’s docs recommend a test timeout of several minutes and handling the 307 loop in your client. With waitFor, set timeoutMs to a value your provider can meet, 60 seconds is typical, and the call rejects with code: 'timeout' if nothing arrives. Fail with the address and time in the error message, so you can open the address in the app and see what, if anything, reached it.
From GraphQL to SDKs
testmail.app’s GraphQL API supports field selection and filters. The Mailcycle SDKs give you typed messages instead, with sender, subject, text, HTML and attachments already decrypted, and they exist for TypeScript, Python, Go, Rust, Java, .NET, PHP, Ruby and Swift. If your test code is in a language where GraphQL clients are awkward, the SDK is a shorter path.
Designing one test with and without tags
Take a sign-up test. With a namespace, the author picks a tag, perhaps from the test name and a random suffix, builds the address, runs the flow and queries by that tag with a timestamp. Every step depends on the tag being unique, and on the clock the test and the API share. With Mailcycle, the author calls addresses.create(), runs the flow and waits on the address. The number of things that must be unique drops to one, the address itself, and the service guarantees it. When a test fails, the address id in your log leads straight to the inbox in the app.
What to keep from the namespace habit
Two habits from the namespace model carry over well. First, put the test’s purpose into the address prefix, for example signup or reset, so addresses are easy to recognise in the app. Second, keep the retention short for short-lived tests. Both are choices you make at creation, and they cost nothing.
A note on cost and sizing
testmail.app plans are sized by emails a month, and Mailcycle plans by addresses held and messages received. For a test suite the two are easy to compare once you count. Multiply the number of email-sending tests by how often they run, and that is your monthly volume. A suite of fifty email tests that runs forty times a day sends about two thousand messages a day, far inside Operator’s 250,000 a month. The addresses are the other number: a suite that deletes each address after use holds only a handful at a time, so the address count stays low.
A checklist before you switch
- Your CI can store two secrets, an API key and the recovery phrase.
- Your tests can take the time just before the action that sends the mail.
- You know which tests used
tag_prefix, because those are the ones where isolation was shared. - Your staging environment can send to a real address on the internet.
- Someone knows the address prefix used by tests, so cleanup scripts can find them.
Moving a suite over, step by step
- Install
mailcycle-sdkand create an API key on Operator or above. - Replace the tag you build in each test with
addresses.create(). - Replace the live query with
waitFor, passing the address id and subject. - Replace
timestamp_fromwithsince, taken just before the action. - Delete the address at the end of the test, or rely on 24 hour retention.
- Remove the namespace and key from CI once the suite passes.
Which Mailcycle plan fits
Operator at $15 a month is the starting point, with 250 addresses, 250,000 messages received a month, API keys and webhooks. Scale at $19 a month adds your own domains. See pricing and the plans and limits docs.
Troubleshooting
waitFor times out
Check that since is taken before the action, that the subject filter matches and that your app sends to the address the test created.
A code expires before the test reads it
Take since immediately before the send and read the code straight away. Magic links often expire in minutes.
A suite leaves addresses behind
Delete in teardown, and keep retention at 24 hours.
Related reading
- Mailosaur alternative and MailSlurp alternative
- Mailtrap alternative
- An email address for every sign-up
- Role addresses on your own domain
- Test email verification in Playwright
- Receive email with a webhook
- Email MCP server guide and the SDK pages
Sources and dates
Every testmail.app statement above was read on 26 and 27 November 2026 from these pages:
| What | Page |
|---|---|
| Address format, namespaces, tags, API, live queries | https://testmail.app/docs/ |
| Plans, prices, limits | https://testmail.app/pricing/ |
| Overview | https://testmail.app/ |
Mailcycle figures come from https://mailcycle.email/pricing/ and https://docs.mailcycle.email/concepts/plans-and-limits/.
FAQ
What is a good testmail.app alternative?
If you want each test to own an address, Mailcycle creates one by API, waits for the message with waitFor and deletes it afterwards. SDKs exist in nine languages, and mail is decrypted for you on arrival at the test.
How does testmail.app pricing compare with Mailcycle?
On 26 November 2026 testmail.app's pricing page listed Essential at $12, Pro at $39 and Enterprise at $129 a month billed monthly. Mailcycle's API keys and webhooks start on the Operator plan at $15 a month, and Scale is $19 a month. The plans measure different things, so compare the limits in the table.
What replaces a namespace and a tag?
An address. testmail.app tests send to a namespace and a tag and filter on the tag. In Mailcycle a test creates its own address and waits on its id, so there is no tag to filter.
What replaces livequery?
messages.waitFor. It resolves with the next matching message, filtered by address, sender and subject, and rejects with a timeout error if nothing arrives in time.
How long does Mailcycle keep test emails?
You choose per address: 24 hours, 7, 30 or 90 days, and the default is 7.
Can I bring my own domain?
Yes. Custom domains start on the Mailcycle Scale plan, with 10 domains included, and Fleet includes 50.
Do I need GraphQL to read mail?
No. You call the SDK in your language, such as messages.waitFor in TypeScript, and read the code from the message text.
Does Mailcycle have an MCP server?
Yes. mailcycle-mcp runs on your own machine and works with Claude Desktop, Cursor, Codex, VS Code or any other MCP client.
Receive email in code
- AgentMail Alternative for AI Agent Inboxes (AgentMail alternative)
- CloudMailin Alternative: Inbound Email to Rails With an Address per API Call (CloudMailin alternative)
- Mailgun Inbound Routes Alternative: Route Mail by Address, Not Regex (Mailgun Routes alternative)
- Mailosaur Alternative for Email Testing and Test Inboxes (Mailosaur alternative)
- Mailparser and Parseur Alternative: Incoming Email as JSON on a Webhook (Mailparser and Parseur alternative)
- MailSlurp Alternative for Email Testing and Test Inboxes (MailSlurp alternative)
- Mailtrap Alternative for Email Testing and Test Inboxes (Mailtrap alternative)
- Postmark Inbound Alternative: Addresses by API, Signed Webhooks (Postmark inbound alternative)
- Resend Inbound Alternative: An Address per API Call, Signed Events (Resend inbound alternative)
- SendGrid Inbound Parse Alternative: Inbound Email by API Call (SendGrid Inbound Parse alternative)
- Test Email Flows on Real Devices with Appium: Read Sign-Up Codes in Python (Appium)
- How to Give a Browser Use Agent an Email Address and Let It Read Its Own Verification Code (Browser Use sign-ups)
- How to Receive Email in C#: Read the Inbox, Save Attachments and Get New Mail Pushed (C# / .NET)
- How to Test Email Verification in Cypress: Receive Sign-Up Codes with cy.task (Cypress)
- Ethereal Email Alternative: Test Nodemailer Emails with an Address per Test (Ethereal Email alternative)
- Golang Receive Email: How to Receive and Read Email in Go (Go)
- How to Read Email in Java: Read the Inbox, Save Attachments and Receive Mail in Spring Boot (Java)
- How to Receive Email in PHP with an Email API: Read the Inbox, Save Attachments and Handle Webhooks (PHP / Laravel)
- How to Receive Email in Python: Read the Inbox, Save Attachments and Get New Mail Pushed (Python)
- Receive Email in Ruby and Rails: Read the Inbox, Save Attachments and Handle Webhooks (Ruby)
- How to Receive Email in Rust: Read the Inbox, Save Attachments and Handle Webhooks in Axum (Rust)
- Add Inbound Email to Your SaaS: Support Intake and Reply-by-Email (SaaS support)
- How to Verify Email in Selenium Tests: Read Sign-Up Codes with Python and pytest (Selenium)
- How to Handle Email Verification in a Stagehand Browser Agent: Create an Address, Wait for the Code, Delete It (Stagehand sign-ups)
- How to Receive Email in Swift: Read the Inbox, Save Attachments and Handle Vapor Webhooks (Swift)
- Test Accounts for Security Testing: a Separate Email Address per Program (Test accounts for security testing)
- How to Automate Email Verification in Tests with Playwright: OTP Codes, Magic Links and Password Resets (Testing email verification)
- How to Receive Email in Node.js: Read the Inbox, Save Attachments and Handle Webhooks (TypeScript / Node.js)
- How to Receive Email with a Webhook: Inbound Email to Your HTTP Endpoint (Webhooks)