MailSlurp is a messaging automation and testing platform that lets you create real email accounts and phone numbers in code, tests, and no-code environments.

Developers and QA testers use MailSlurp to create real email addresses and phone numbers on demand. You can send and receive emails and SMS messages, extract content, and verify email and SMS functionality in your application testing workflows.

These features enable deep and reliable testing of application processes end-to-end.

Unlimited disposable email addresses

Create real email accounts instantly in code, tests, and no-code environments.

Use email APIs to test applications end-to-end including user sign-up, email magic links, password resets, and more.

Real phone numbers on demand

Assign genuine mobile phone numbers to systems and test harnesses to send and receive SMS messages during Q.A.

Use SMS APIs to test two-factor authentication, support codes, password resets, and more.

Virtual TOTP MFA devices

Test MFA and two factor authentication using virtual Authenticator devices powered by MailSlurp. Link multi-factor authentication QR codes and OTP auth URLs to unique test authenticator devices. Generate real, valid OTP codes for automated MFA testing.

See the TOTP virtual devices page for more information.

Special testing methods

MailSlurp APIs are designed for easy end-to-end testing. They include powerful functions to wait for emails, extract links and codes, verify content, and more.

Wait for function

MailSlurp provides distinctive wait-for functions that allow teams to dependably await emails that meet specific test criteria. This helps avoid unreliable tests, supports simultaneous inbox operations, and simplifies the testing and creation of email processes.

You can also extract links from messages easily using helper functions. Use these in tests to test 2FA authentication, password resets, and more.

Code extraction

Use MailSlurp's code extraction functions to parse and capture codes and email content automatically. These functions are perfect for testing email confirmation codes and OTP/2FA magic links.

HTML queries

MailSlurp provides a powerful way to extract content from email messages using HTML queries. Using methods like and you can select HTML elements from email bodies and extract text content, links, images, and more. This makes it easy to test email content in your application's end-to-end tests.

No-code test UI

Test and verify email content with visual dashboards with team access and fine-grained permissions.


Email load testing

Stress test applications with email and SMS load testing that scales. Built on serverless backends with pub sub queues MailSlurp can handle millions of emails per minute. Test you application before big events or traffic spikes to ensure that user sign-up, notifications, and password resets function correctly. See the load testing guide for more information.

Mobile QA testing

MailSlurp works natively with iOS and Android test framework. Use our Swift Package and Android SDK to create email accounts and phone numbers in your mobile applications. This means you can test sign up processes in Appium, Espresso, and Selenium mobile and receive real email and SMS and extract links and codes. You can even click on links in emails and view them in your emulator.

How to integrate

MailSlurp provides a wide range of libraries and SDKs for popular programming languages and testing frameworks.