Test your application with real email addresses.

Unlimited private test email accounts. REST API and SKDs. Create unique email addresses on demand. Programmatically send and receive emails to test any email dependent process.

MailSlurp logo
Brand logoBrand logoBrand logoBrand logo

Features

Create Unlimited Email Addresses

Create Unlimited Email Addresses

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 email your app's email response and parsing functionality.
Receive Inbound Email

Receive Inbound Email

Sign up a user with a randomized address. 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.
Found this awesome tool called @mailslurp. Definitely worth checking out! Their support is legendary too.
Trent, Developer, nib.com.au

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.

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

const newEmailInbox = await api.createInbox()

const email = { to: ['support@myapp.com'], body: 'hello!' }
await api.sendEmail(inbox.id, email)