Test code with real emails.

Send and receive email from ephemeral email addresses via REST. Test email signup, verification codes, transactional-mail and more.

True end-to-end testing

Add MailSlurp to your test-suite and test email dependent functionality across your application.


// javascript jest example. other SDKs and REST APIs available
import { MailSlurp } from "mailslurp-client"
const api = new MailSlurp({ apiKey: "test" }) 

test('my app can receive and handle emails', async () => {
    // create a new email address for this test
    const inbox = await api.createInbox()

    // send an email from the address to your application
    await api.sendEmail(inbox.id, { to: myAppAddress })

    // assert that app has handled the email
    expect(myAppReceivedEmail()).resolves.toBe(true)
})
    

Test key functionality and critical paths.

Write End-to-End tests using real, ephemeral inboxes. Send, receive and parse emails to verify key functionality, like user sign-up, email notifications, support responses and much, much more.

Unlimited email addresses

Unlimited email addresses

Generate random email inboxes to send and receive from.

Send emails via HTTP

Send emails via HTTP

Send emails from randomly generated inboxes via REST or official SDKs

Receive and parse emails

Receive and parse emails

Get inbound email content and headers from within your tests.

REST API

REST API

Simple REST API for creating inboxes, sending email, and receiving new messages.

Official SDKs

Official SDKs

SDKs for Node, Java, Ruby, PHP, and Python. Or generate your own from swagger specs.

One of a kind

One of a kind

The only service that lets you easily test core functionality with real email addresses.

How does it work?

MailSlurp is an API for creating random, unique email addresses on the fly. It also let's you send and receive emails programmatically. MailSlurp helps you test the key functionality of your application. It can be used with any test framework or language via HTTP. You can also use one of the official SDKs.

Pricing

Start free. Pay for unlimited use.

Free
For 30 days
$29.99
Per month. Unlimited use.