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.
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.
Link parsing
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.
How MailSlurp integrates with your testing workflows
MailSlurp provides a wide range of libraries and SDKs for popular programming languages and testing frameworks.
- For code-based testing you can use the MailSlurp API and SDK clients to create and control inboxes and phone numbers
- For popular testing frameworks like Cypress, Selenium, Playwright, and Postman you can use official plugins and tutorials
- For no code approaches you can load the specialized low-code test interface in a browser recording.