Generate test email accounts
If you need unique random email addresses for any reason you probably want to use test email accounts. MailSlurp is a free service for creating real eamil accounts in code, tests, or using a dashboard UI.
Create test email addresses
You can generate test email accounts on demand with API services like MailSlurp. MailSlurp let’s you create real, random email addresses from code then send and receive real emails. It supports many programming languages.
MailSlurp is like a fake email account for testing but it let’s you do more. You can create as many email addresses as you like and then test send and receive email from them from code via REST API or SDK.
How to test emails
Email testing is a common requirement for many modern apps. To test your code with fake email accounts:
- First create a test suite
- Use MailSlurp API to create a new email address
- Trigger an action in your application with unique test email
- Use MailSlurp API to receive inbound emails
- Verify the results
Test email sending and receive emails without a mail server.
Send and receive email in DotNET Nunit tests using Selenium and MailSlurp.
Use real email accounts in CypressJS to test user sign-up, email verification, and more.
How to send and receive emails in Go (test email addresses).
Testing user sign up in Java using TestNG and MailSlurp test email accounts
Write acceptance tests in PHP with real email addresses using Codeception and MailSlurp
How to send and receive emails in PHPUnit tests.
Send and receive email in Pytest Python tests.
Receive emails in Java test suites using MailSlurp, Junit, and Selenium.
Cucumber example project using Capybara to test user authentication using real email addresses.
Test email sign-up. password verification and more with Cypress JS and MailSlurp.
Generate test email accounts with Ruby and Cucumber. Test email sign-up, password verification and more.
Email acceptance testing with Serenity and MailSlurp. Test applications with real email addresses.
Test email related processes like sign-up and verification using WDIO WebDriver and MailSlurp.
End-to-end testing with MailSlurp, NodeJS, and TestCafe.
How to test .NET authentication and sign-up using real email accounts with MailSlurp and SpecFlow.
Python automation email testing Robotframework plugin
MailSlurp also has a powerful online dashboard that enables team access.
Try it out (free)
You can try MailSlurp for free. Check it out