Test code with real emails addresses.

Create ephemeral inboxes via REST. Then send and receive from them.

Code examples

Add MailSlurp to your test-suite.

Test email dependent apps.

Complete end-to-end testing.

MailSlurp is easy to integrate and will extend your test coverage to every crucial function.

Documentation

// 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)
})