Email testing API for CI, signup flows, and notification checks
MailSlurp gives teams a programmable way to create inboxes, wait for matching messages, and validate signup, OTP, password reset, invite, and notification emails in code.

Trusted by top companies worldwide
import { test, expect } from "@playwright/test";import { MailSlurp } from "mailslurp-client"; test("sign up with email OTP", async ({ page }) => { const mailslurp = new MailSlurp({ apiKey: process.env.MAILSLURP_API_KEY! }); const inbox = await mailslurp.createInbox(); await page.goto("/signup"); await page.getByLabel("Email").fill(inbox.emailAddress!); await page.getByRole("button", { name: "Create account" }).click(); const email = await mailslurp.waitForLatestEmail(inbox.id!, 30000); const code = email.body!.match(/\b\d{6}\b/)![0]; await page.getByLabel("Code").fill(code); await expect(page.getByText("Welcome")).toBeVisible();});Code-first checks
Write the email assertion next to the user journey
Create an inbox for the test, trigger the signup or reset flow, wait for the delivered message, and assert the exact link, code, header, or attachment your customer depends on.

Read the received email inside the same Playwright test
Create a private inbox for the run, submit its address in Playwright, wait for the expected subject with a bounded API call, extract the delivered link or OTP, and delete the inbox during cleanup. Use the MailSlurp SDK alongside Playwright—no separate plugin is required.

Promote captured email into API assertions
Capture staging SMTP traffic in MailSlurp Email Sandbox, inspect the received payload, then use the same inbox and wait APIs to assert signup, password reset, OTP, billing, and notification messages in CI.

Create inboxes per run and wait for the exact message
Replace shared inboxes and fixed delays with disposable test identities, bounded waits, and message matching by sender, subject, content, or unread state.

Extract links, codes, headers, and attachments directly
Validate the delivered message payload customers depend on instead of scraping inbox UIs or hand-rolling MIME parsing in each suite.
Email testing API workflows MailSlurp supports
Turn email checks into repeatable release coverage with programmable inboxes and high-signal assertions.
Signup and invitations
Create an inbox, trigger your app flow, wait for the message, and assert the link and content.
Read email in PlaywrightPassword reset
Verify sender, subject, reset link, and timing before auth-related changes go live.
Open auth testingTransactional notifications
Use the same inbox automation for receipts, alerts, onboarding, product-event messages, and SMS-backed auth flows.
Open SMS verificationAttachments and headers
Inspect files, recipients, MIME content, headers, links, and message metadata from code.
Email sandbox
Capture staging SMTP traffic, inspect received payloads, and promote stable checks into API assertions.
Open email sandboxCI release checks
Keep inbox IDs and message IDs with failures so teams can debug and trust pipeline results.
Open testing platformIntegrate MailSlurp Seamlessly
Integrate with any framework
Official plugins and SDKs for all major programming languages, frameworks, and test platforms. All functionality available via API or dashboard.

CI/CD Native
MailSlurp fits right into your existing development, testing, and CI/CD workflows. Deploy and iterate with confidence and actionable feedback.
Email testing workflows at production scale
Emails processed
500 million+
Scale for CI, staging, and release checks.
Testing coverage
OTP + resets
Cover signup, password reset, magic-link, and notification flows.
Mature platform
10+ years
Stable APIs for long-running engineering test suites.


