Email testing API for Playwright, Cypress and CI

Real inboxes for your end-to-end tests

Make up any address on your project's domain, let your app send to it, and get the message back as JSON: links and confirmation codes already pulled out. No mailbox to set up, nothing to clean up.

$1 of free credit (1,000 messages) when you confirm your email. No card needed.

signup.spec.ts
import { Waitformail } from '@waitformail/sdk';

const mail = new Waitformail({
  apiKey: process.env.WAITFORMAIL_API_KEY,
  projectId: process.env.WAITFORMAIL_PROJECT,
});

test('sign up confirms the email', async ({ page }) => {
  const to = await mail.address('signup');
  await page.fill('#email', to);
  await page.click('text=Sign up');

  const msg = await mail.waitForMessage({ to });
  await page.goto(msg.links[0].url);
});

How it works

01

Create a project

It gets its own domain, like k3x9.eoinbox.com. Every address on it works, no setup per address.

02

Send from your app

Your test signs up with a fresh address. The app sends its email through your normal provider, or through our SMTP trap.

03

Wait for it in the test

One call returns the message the moment it lands, with links, codes, headers and SPF and DKIM results.

Built for test suites

Waits, does not poll

The request is held open until the message arrives, so tests finish as soon as the email does.

Links and codes, ready to use

Confirmation links and one-time codes come out of the message for you. No HTML parsing in your tests.

SMTP trap for staging

Point a test environment's mail settings at us: everything it sends is caught, nothing reaches real people.

Your own domain

Receive on a subdomain you own, for apps that only accept company addresses.

Plain REST API

A Node library with types, and an OpenAPI description for any other language.

Pay for messages, not seats

No subscription: top up when you need to. Messages we refuse cost nothing.

$1 per 1,000 messages

  • $1 free credit when you confirm your email
  • Top-ups of $10, $25, $50 or $100
  • Any number of addresses on each project's domain
Start free