Test every transactional email
- Welcome and verification
- Password reset and magic link
- Receipts and invoices
- Security alerts
What to check
- Subject and preheader text
- Rendering with images blocked
- The plain-text part
- Links point to the right environment
- Codes expire when they should
Automate it
Use our temp mail API to create an inbox per test and poll for the message. Name addresses after the test case so failures are easy to trace.
A release checklist for email
- Every transactional email arrives within 30 seconds of the action that triggers it.
- Subject lines and preview text are correct and contain no placeholder text.
- All links point to production URLs and work when signed out.
- Codes and links expire when they should and cannot be reused.
- SPF, DKIM and DMARC pass for the From domain.
- The plain text part is readable on its own.
- Unsubscribe works for anything that is not strictly transactional.
- Rendering is checked in Gmail, Outlook and Apple Mail, on desktop and mobile.
Avoid testing on real addresses
Sending tests to colleagues' real inboxes leads to confusion and occasionally to test messages reaching customers. Sending to invented addresses causes hard bounces, which damage your domain's sending reputation. A temporary inbox per test gives you a real, reachable address with nothing at stake.
Automating with an API
In an end-to-end test, create an inbox through the API, use its address in the sign-up form, then poll the inbox until the message arrives. Read the detected verification code from the message, enter it, and assert on the next page. Delete the inbox at the end. Keep a timeout of 60 to 90 seconds so slow providers do not fail the test unnecessarily.
Common bugs that QA catches
- Links built from an internal host name instead of the public domain.
- Timezone mistakes in expiry messages.
- HTML-only emails that show nothing in plain text clients.
- Emails sent twice because of retries in a background job.
- From address on a domain that does not pass DMARC.
Testing deliverability, not just content
An email that looks perfect in a test inbox can still land in spam for customers. Before launch, check three things. First, authentication: the Email X-ray on your test message should show SPF, DKIM and DMARC passing for your own domain, not only for your email provider's domain. Second, content signals: avoid image-only emails, link shorteners and mismatched link text, which filters treat with suspicion. Third, volume: if you are moving to a new sending domain or IP, start with small daily volumes and increase gradually over a few weeks.
Keep a short log of each release: which templates changed, which test addresses received them, and the authentication results. When a customer reports a missing email weeks later, that log makes the investigation much faster.
Accessibility in emails
Check that images have alt text, buttons are real links with readable text, color is not the only way important information is shown, and the plain text version makes sense on its own. Screen reader users and people on slow connections rely on these, and they also help deliverability, since image-only emails look suspicious to filters.
Your checklist
- Test every transactional email.
- Check links, codes and expiry.
- Verify authentication.
- Automate with an inbox API.
Terms used on this page
- Magic link
- A one-time login link sent by email that signs you in without a password.
- Transactional email
- An automated message triggered by a user action, such as a receipt, password reset or verification code.
- SPF
- Sender Policy Framework, a DNS record listing which servers may send mail for a domain, helping receivers detect spoofing.
- DKIM
- DomainKeys Identified Mail, a cryptographic signature added to emails so receivers can verify they weren't altered and came from the domain.
- DMARC
- A policy that tells receivers what to do with mail failing SPF or DKIM checks, and where to send reports.
- Spam
- Unsolicited bulk email, usually commercial, sent without the recipient's consent.
- Deliverability
- The likelihood that an email reaches the inbox rather than spam or rejection.
Free tools for this
- Link Checker: See where a link really goes before you click it.
- Email Address Validator: Check formatting, typos and whether the domain accepts mail.
Related guides
FAQ
How many test inboxes can I create?
As many as your tests need, within the API's rate limits. Create one per run and delete it when done.
Should QA test with Gmail and Outlook too?
Yes. Use temporary inboxes for automated checks and a small set of real test accounts at major providers for rendering and spam placement before big releases.
Should test emails use production templates?
Yes, with test data, so you catch real rendering issues.
How do I test unsubscribe?
Trigger the List-Unsubscribe URL and confirm the address is removed.
How often should we run email tests?
On every release that touches sign-up, billing or notifications.