Why use a temporary inbox for testing email flows?
It gives you a real external recipient, so you test actual delivery and not a mock. Each Tmail inbox has a password, which lets a tester or a script return to the same address across a multi-day QA cycle. It only receives mail; it is not a sending service.
- Checks delivery, not just that send() was called
- Password or token re-opens the same inbox
- API keys are issued by request during the beta
- Not a load-testing or bulk-signup tool
What a real inbox catches that a mock does not
A local mail catcher such as Mailpit or MailHog is the right tool while you are writing the feature: nothing leaves your machine and it is instant. The trouble starts in staging, where the message has to survive things a catcher never exercises.
- Sender authentication. A missing or misaligned SPF, DKIM or DMARC record does not throw an exception in your app. The message just gets refused or delayed by the receiving side.
- Environment mix-ups: a staging build still pointing at the sandbox mail key, or a reset link that points at localhost because a base-URL variable was not set.
- Template breakage in a real renderer, such as an unclosed tag that swallows the button or a variable printed as a literal placeholder.
- Timing. A code that expires in five minutes is a different product if your provider queues mail for three of them.
Tmail accepts mail over standard SMTP (RFC 5321) from any sender that will deliver to it, stores it, and renders HTML bodies inside a sandboxed frame, so what you see is close to what a webmail user would see.
A manual QA pass, step by step
For exploratory testing or a release checklist, the browser is enough.
- Open the homepage and press 'Copy credentials'. Paste the address and password into the test case or ticket so anyone on the team can reopen the inbox.
- Register a test user in your staging app with that address.
- Watch the inbox. It checks for mail about every five seconds while the tab is active. Note roughly how long the message took; a sudden jump between releases is worth a bug report.
- Open the message. Check the from-name, the subject, that the detected code or link matches what your app generated, and that the link's host is your staging host and not production.
- Trigger the follow-up flows against the same address: password reset, email-change confirmation, a second login code. They should all land in the one inbox, in order.
If a colleague needs to see the result without the password, the credentials card can create a private read-only link to the mailbox with an expiry of a day, a week, a month or a date you pick, and you can revoke it.
Automating it with the API
For end-to-end suites there is a REST API. A run usually looks like this: POST /api/v1/mailboxes returns an address, its password and a session token; your Playwright, Cypress or Selenium test signs up with the address; the test then polls GET /api/v1/messages?address=… until the message is listed, fetches it by id, and extracts the code or link from the text body.
Things to design around: delivery is by polling, so give the wait a sensible timeout (30 to 60 seconds is typical for transactional mail) and a poll gap of a few seconds. Keys have a per-minute burst limit and a daily limit, and a 429 response carries a Retry-After header you should honour. A mailbox lists its 100 most recent messages, and there is no endpoint to delete a mailbox.
The API is in private beta. Keys are issued by the team on request and there is no self-serve sign-up, so plan for that before you build a pipeline around it. Endpoints, headers and error codes are in the API reference, with background in the documentation.
Limits you should know before relying on it
- Your app must be able to send to the public internet. Mail from a laptop with no outbound mail provider, or from a network that blocks port 25, will never arrive, here or anywhere else.
- It is receive-only. You cannot test replies, bounces generated by the recipient, or forwarding behaviour.
- Guest browsers are limited in how many addresses they can generate, and the service is not for creating accounts in bulk on other people's platforms. Test your own product, or one you have permission to test.
- There is no promised mailbox lifetime. Fine for a sprint, wrong for a fixture you expect to exist next year. Do not hard-code an address into a long-lived test suite; create one per run.
- Do not send real customer data to a test inbox. Use synthetic users, and keep production mail out of it.
When another tool is the better choice
If you only need to see rendered templates on your own machine, use a local catcher. If you need to preview one design across dozens of email clients, use a rendering-preview service. If you need to test inbound mail parsing in your own product, you need your own receiving domain. A temporary inbox sits in the gap between those: proving that a real message, from the real pipeline, reaches a real mailbox.
Frequently asked questions
- Can my local development app send to a Tmail address?
- Only if it sends through a real outbound mail provider. A dev server that hands mail to a local catcher, or that has no SMTP relay configured, keeps the message on your machine. Point the app at your provider's sandbox or staging credentials first.
- Is there an API, and how do I get a key?
- Yes, a REST API for creating mailboxes and reading messages. It is in private beta: keys are created by the Tmail team, so request one through the contact page and describe what you are testing.
- Can I keep one test address for a whole QA sprint?
- Yes, in practice. Save the address and password and log back in from any machine, or exchange them for a token through the API. There is no guaranteed lifetime, so do not depend on the same mailbox existing indefinitely.
- Does Tmail send email or offer outbound SMTP?
- No. It receives and displays mail. Use your own mail provider for sending and Tmail as the recipient you inspect.
- Can I use it for load testing sign-ups?
- No. Rate limits apply to the site and the API, and generating addresses in bulk is the pattern those limits exist to stop. For load tests, stub the email step or use a receiving domain you operate.
- Is it safe to open test emails that contain scripts or tracking?
- HTML mail is displayed in a sandboxed frame with scripts and event handlers stripped before rendering. That protects the page you are on; it does not make a test inbox a suitable place for real personal data.