Test with real email addresses

If your apps uses email in any way test it end-to-end with real, on-demand email addresses. Use the MailSlurp API to create unique email addresses, send emails, and parse inbound messages.

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.
Validate invoices

Validate invoices

If your app sends bills or legal documents you want to know they are correct. Trigger the actions in a test and use a MailSlurp email to receive and parse the response.
Test password reset

Test password reset

Test the reset password flow.
Test GDPR compliance

Test GDPR compliance

If your site is under GDPR regulations test the automatic data mailing with MailSlurp.

Integrations

REST API

A simple HTTP API for creating inboxes, sending emails, and receiving messages.

Javascript Client

`npm install mailslurp-client` and call MailSlurp from Jest, Mocha or where ever you need it.

Swagger Docs

Create your own client or use pre-generated libraries in Java, Python, C#, Ruby or Go.

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)