MailSlurp logo

Programmable email accounts and phone numbers

MailSlurp is a programmable email and SMS API for creating real email addresses and phone numbers from code. Send and receive messages, capture verification codes, and connect every conversation to your apps, tests, agents, or automated workflows.

Test inbox

qa-4812@mailslurp.com

Receiving

Messages3 received

Your sign-in code is 482913

accounts@acme.dev

now

Order #1842 confirmed

1

orders@acme.dev

receipt-1842.pdf
now

Re: Account access

support@acme.dev

now

Trusted by top companies worldwide

  • Broadcom
  • Scraper
  • Trivago
  • Avast
  • Wolt
  • Panasonic
  • Broadcom
  • Scraper
  • Trivago
  • Avast
  • Wolt
  • Panasonic
MailSlurp inboxes created and managed through the email API

Create and control real email addresses from code

Provision inboxes for applications, test runs, support queues, and agents. Send messages, wait for received email, inspect links and attachments, and keep each address tied to the workflow that owns it.

Hosted inboxes, connected providers, and custom domains

Use hosted MailSlurp addresses, connect Gmail or Outlook, or create inboxes and aliases on your own domains.

Send, receive, and wait for email from code

Use REST APIs and SDKs to send messages, wait for matching email, and inspect headers, links, and attachments.

Route messages into any workflow

Connect inbound email to webhooks, AI agents, databases, support tools, and automated pipelines.

Programmable phone numbers connected across mobile networks

Provision phone numbers and receive SMS in your workflows

Create phone numbers for OTP, MFA, recovery, alerts, and inbound SMS. Wait for real messages through the API, extract verification codes, and keep phone activity visible across development, CI, and production workflows.

Provision real phone numbers

Create dedicated numbers for tests, applications, support, and long-lived messaging workflows.

Test OTP and MFA delivery

Receive real verification texts, extract codes, and complete signup, login, and recovery journeys.

Connect SMS to automated workflows

Trigger webhooks, route inbound messages, and keep phone activity attached to tests and applications.

End-to-end testing toolkit.

Test the complete customer journey with real email addresses and phone numbers, then keep every message, code, and assertion attached to the test run that created it.

OTP and MFA journeys

OTP signup flow test result with four passed checks

Receive email or SMS codes, submit them in the browser, and assert the verified state across signup, login, and recovery.

Plugins for major frameworks

Testing framework and programming language integrations

Use MailSlurp with Playwright, Postman, Selenium, Cypress, Java, Python, JavaScript, and the tools your team already runs.

Integrate into CI/CD

Successful email verification and OTP checks in a CI pipeline

Run deterministic email and SMS checks on every pull request and block a merge when a critical customer flow fails.

Load test real delivery

Email and SMS traffic flowing into a load testing server

Provision isolated inbox and phone cohorts, increase concurrency, and measure receipt timing without shared-account collisions.

Email rendering and inspection.

Review the message that actually arrived, see how it renders across providers and devices, and catch content or delivery problems before customers do.

Render on real devices

Gmail, Outlook, and Yahoo email clients across phone, tablet, and desktop

Preview Gmail, Outlook, Yahoo, Apple Mail, mobile, desktop, light mode, and dark mode from one delivered email.

Check inbox placement

Outlook inbox placement result showing an email delivered to spam

See whether email reaches inbox, promotions, or spam across real Gmail, Outlook, Yahoo, and Apple provider mailboxes.

Monitor sender authentication

Sender health score with SPF, DKIM, and DMARC status checks

Track SPF, DKIM, DMARC, MX records, reputation signals, blocklists, and domain changes before inboxing drifts.

Audit links and content

Email audit score with passed checks, warnings, and errors

Catch broken links, missing images, unsupported markup, and content warnings in the email received by your test inbox.

Programmable email and SMS API questions

Create communication identities in code, control their lifecycle, and use the messages they receive in applications and automated tests.

What is a programmable email and SMS API?

A programmable email and SMS API lets software create email addresses and phone numbers, send and receive messages, wait for matching content, and route message events without manual inbox or device access. Explore the API documentation.

Can MailSlurp create real email addresses and phone numbers from code?

Yes. Create hosted inboxes, connected inboxes, custom-domain addresses, and dedicated phone numbers through REST APIs and SDKs, then keep each resource tied to the application, customer, agent, or test run that owns it. See programmable email. See programmable phone numbers.

How do I test OTP and MFA with programmable phone numbers?

Provision or assign a number to the test, submit it in the signup or login flow, wait for the inbound SMS, extract the one-time code, complete the browser journey, and release or retain the number according to the test policy. Test SMS OTP with Playwright. Test SMS OTP with Cypress.

Can I use MailSlurp with Playwright and Cypress?

Yes. Playwright and Cypress tests can create private inboxes or phone numbers, trigger the application flow, wait for the delivered email or SMS, extract a link or code, and assert the final state in the same run. Read the Playwright email testing guide. Read the Cypress email testing guide. Create disposable test inboxes.

Built for teams that need control.

Keep inboxes, phone numbers, environments, and access policies organized as more people and systems depend on MailSlurp.

Shared team inboxes

AMJRSK

Give every team one inbox with shared ownership and durable message history.

Dev / staging / prod

Dev
Staging
Prod

Keep email and phone resources separate across dev, staging, and production.

RBAC permissions

Create inboxesAllowed
Read messagesAllowed
Manage billingRestricted

Control organization, team, and environment access with precise roles.

The complete email and SMS toolkit.

Develop and test real messaging flows, preview emails on real devices, protect deliverability, and connect AI agents—all from one platform.

Messages moving from an inbox through desktop and mobile previews to inbox placement results