QA Checklist for Testing Email Verification Flows
Developer
By the zephbox teamPublished 5 min read
How we write these: product details are checked against the current zephbox API and site behavior on the date shown. Spotted a mistake? Tell us and we correct it (editorial policy).
A complete email-verification test plan covers six areas: delivery, the code or link itself, the happy path, abuse and edge cases, security properties and the email's content. Most teams only test that a code arrives and works once. Use this checklist to find the gaps; each item is written so you can turn it into a pass/fail test. It is about what to test; for how to wire the mailbox into automation, see the automation guide.
Test data and environment
- A fresh address per test or scenario, never a shared mailbox. A temporary inbox per run keeps parallel tests from reading each other's mail.
- Staging sends real mail. Mocking the email layer hides integration bugs: template errors, sender configuration, link hosts. Keep at least one end-to-end test with real delivery.
- Separate from production. Staging emails should be clearly marked, and links must point at staging.
- Known clock. Expiry tests need a controllable time source or a configurable validity window in test environments.
A. Delivery
| ID | Check | Pass condition |
|---|---|---|
| A1 | Email arrives after signup | Within your documented time budget |
| A2 | Arrives for different provider families | Gmail-style, Outlook-style and a custom-domain address all receive it |
| A3 | Not in spam (where you can see it) | Lands in the inbox for a mainstream provider; see SPF, DKIM and DMARC |
| A4 | Exactly one email per request | No duplicates under retry or double-click |
| A5 | Sender and reply-to are correct | Expected from-address and display name |
B. The code
- B1 Format: length and character set match the spec and the message states them clearly.
- B2 Single use: the same code submitted twice succeeds only once.
- B3 Expiry: a code just inside the window works; one just outside fails with a clear message. Run this as a scheduled or time-controlled test, not on every commit.
- B4 Wrong code: rejected, with a non-informative message, and counted toward lockout.
- B5 Attempt limit: after N wrong tries the code is invalidated or the account is throttled.
- B6 Resend: requesting a new code issues a new one; the old one is invalidated or still valid according to the documented rule. Assert the actual rule.
- B7 Binding: a code issued for account A cannot verify account B.
- B8 Case and whitespace: a code pasted with spaces or a trailing newline is handled as intended.
C. The link (if you use links)
- C1 The link works once, from a different browser or device than the one that signed up.
- C2 It expires on the documented schedule and shows a useful page, with a way to request a new link.
- C3 It survives common mail clients: no line wrapping in plain text that breaks the URL, no tracking redirect that fails.
- C4 The host in the link is the environment's own host. A staging email linking to production is a classic bug.
- C5 Opening the link twice, or scanner pre-fetch (security software that fetches links before the user does), does not consume the token unintentionally. If pre-fetch can burn a one-time link, use a confirmation click on the landing page.
D. Happy path and state
- After verification the account is truly active: login works and verified-only features unlock.
- Unverified accounts are restricted as designed, and the restriction message points to resend.
- Changing the email address on a verified account re-triggers verification and keeps the old address active until the new one is confirmed.
- Signing up again with the same address shows a safe message (see enumeration below).
- Password reset follows the same delivery and expiry rules and cannot be used to verify someone else's address.
E. Abuse and edge cases
- Rate limits: resend requests per address, per IP and per account are limited.
- Disposable domains: if you block them, a known disposable domain is rejected and a mainstream domain is accepted. If you do not block them, a temporary address completes the flow (how blocklists work).
- Plus-tags and dots:
[email protected]is accepted and delivers; decide whether variants count as the same account. - International addresses: non-ASCII local parts and domains are accepted or rejected consistently.
- Very long addresses and unusual but valid characters.
- Bounce handling: what the product does after a hard bounce on a mistyped address.
F. Security properties
- Token strength: codes and link tokens come from a secure random source, with length appropriate to their lifetime and attempt limit. A 6-digit code is only safe with a strict attempt limit and short expiry.
- Enumeration: signup and reset responses do not reveal whether an address is already registered, in message text or timing.
- Host-header poisoning: the link is built from configuration, not from the request's Host header.
- Open redirects: the verification landing page does not redirect to attacker-supplied URLs.
- Tokens in logs and analytics: a link with a token should not leak via referrer or third-party scripts on the landing page.
- Session handling: verifying does not log in the wrong browser, and old sessions are invalidated after a reset.
G. Email content
- Subject and preheader state the purpose and, if safe, the product name.
- The code is in plain text and easy to select; the message works in plain-text-only clients.
- Localized versions exist for each supported language, with correct fallbacks.
- Dark mode and mobile rendering are readable.
- No unnecessary links; the unsubscribe and footer rules for transactional mail in your jurisdiction are met.
- The message tells recipients what to do if they did not request it.
Where a temporary inbox helps, and where it does not
A temporary inbox lets a test see what a real recipient would receive: arrival time, sender, subject, body and links, plus extraction of the code. It is the right tool for sections A, B, C and G. It cannot show raw headers, spam-folder placement or how a particular consumer mail client renders the message, so those need a mailbox you can inspect and real-client checks. It is receive-only, so reply-to behavior needs another tool. Keep a small manual pass on real devices before major template changes.
The related reading: code extraction limits, waiting for mail, and the API docs.
Frequently asked questions
How often should I run expiry tests?
As a scheduled or nightly test, or with an injectable clock, since they are slow by nature. Keep fast tests on every commit.
Should staging use real email delivery?
Yes for at least one end-to-end test. Mocked email can hide template, sender and link-host bugs.
Can a temporary inbox test deliverability to spam folders?
Not reliably. It shows whether and when the mail arrived, not full authentication or folder placement.
Gmail & Outlook Temp Mail That Services Can't Block
95%+ acceptance rate for Facebook, Instagram, Netflix & OTP signups.
Try zephbox Premium →