Temp mail is one of the simplest ways to test email-dependent product flows without polluting real inboxes. This guide reflects how we exercise signup and verify-email paths against eTempMail during development.
What we test with disposable inboxes
- Registration confirmation links
- Password-reset messages
- Invite-to-team emails
- Marketing double opt-in (on staging only)
Browser UI vs API
For a single manual check, open etempmail.net or a timed page such as 10 Minute Mail, copy the address into staging, and wait for the message. For automated suites, use the Temp Mail API via RapidAPI so CI can create an inbox and poll for mail.
Curl pattern we use in smoke tests
# 1) Create / fetch an inbox (path from RapidAPI docs)
curl -s -X GET "https://temp-mail-api3.p.rapidapi.com/..." \
-H "x-rapidapi-host: temp-mail-api3.p.rapidapi.com" \
-H "x-rapidapi-key: $RAPIDAPI_KEY"
# 2) Poll until the subject matches /verify|confirm/i
curl -s -X GET "https://temp-mail-api3.p.rapidapi.com/..." \
-H "x-rapidapi-host: temp-mail-api3.p.rapidapi.com" \
-H "x-rapidapi-key: $RAPIDAPI_KEY"
Exact routes change with the RapidAPI listing — always copy them from the live docs. Keep keys in CI secrets.
Playwright sketch
const inbox = await createTempInbox(process.env.RAPIDAPI_KEY);
await page.getByLabel(/email/i).fill(inbox.address);
await page.getByRole('button', { name: /continue|sign up/i }).click();
const msg = await waitForMessage(process.env.RAPIDAPI_KEY, inbox.id, /confirm/i, 60_000);
await page.goto(firstUrl(msg.body));
await expect(page.getByText(/verified|welcome/i)).toBeVisible();
Cypress sketch
cy.task('tempMail:create').then((inbox) => {
cy.get('[data-testid=email]').type(inbox.address);
cy.get('[data-testid=submit]').click();
cy.task('tempMail:wait', { id: inbox.id, ms: 60000 }).then((msg) => {
cy.visit(firstUrl(msg.body));
});
});
Retention reminders for testers
Free standard messages are cleaned up in about 24 hours. Timed modes die with the timer. Do not assert that an address still works the next day unless you are on Temp Mail Pro persistent inboxes.
Responsible automation
Automate against your staging systems and flows that allow disposable mail. Do not use the API to farm third-party consumer accounts or evade bans. Full developer notes: /temp-mail-api.