Unlimited private email addresses on demand.

Test with real emails. Create private addresses from code then send and receive with them.

MailSlurp logo

Trusted By


Test your application fully

Know that every aspect of your app works as expected. Test email sign-up, password reset, load balancing and more.

Verify essential emails

Be certain of the emails you send and how you handle inbound messages. Test applications with real email addresses.


Email Address API

Email Address API

Create real inboxes on the fly via HTTP or SDK. Use them in your tests for clean-slate test environments.
Send Emails via REST

Send Emails via REST

Compose and send emails from unique addresses. Test emails for testing email captures.
Capture Inbound Email

Capture Inbound Email

Receive real emails. Test that your app sends verification codes, transactional mail, and much more.

Use cases

Test user sign up

Test user sign up

Create a new email address for each test. Sign up with the unique address. Receive and extract verification codes from confirmation emails.
Test email notifications

Test email notifications

If your app sends email alerts or transactional mail use MailSlurp email inboxes to capture and validate the messages.
Test automated responses

Test automated responses

Test email-driven actions and automated responses. Create a new email address during a test, send email from the address, then verify your app's response.

Code Examples

MailSlurp has a simple REST API plus a range of official SDKs. Here are some Javascript code examples to demonstrate MailSlurp's key features. MailSlurp is an email testing tool so should be used in your integration or end-to-end tests to test the email related aspects of your application.

// javascript client
import { MailSlurp } from "mailslurp-client"
const api = new MailSlurp({ apiKey: "test" })

// create a new private email address
const { id, emailAddress } = await api.createNewEmailAddress()

// receive email
const receivedEmail = await api.fetchLatestEmail(emailAddress)

// send email 
const email = { to: ['support@myapp.com'], body: 'hello!' }
await api.sendEmailSimple(email)

// send from a known address
await api.sendEmail(id, email)