Send and receive email with MailSlurp

Email APIs for testing and development.

Create real, private email addresses on demand. Send and receive emails and attachments in application code and integration tests. Intuitive REST APIs and SDK Libraries. Free for personal use.

Quick start


How does it work?

MailSlurp is an email service that lets you send, receive, and test email processes. You can create email addresses in code or using our webapp dashboard. MailSlurp lets you test and verify email content and attachments moving through your system during automated testing and development.

Email APIs explained

Email in code

Create real email addresses on demand. Send and receive email in Javascript, Ruby, PHP, Python, Java, and more. Built for developers and QA testers to build email functionality and test email related processes.

// install package with `npm install --save mailslurp-client`
import { MailSlurp } from "mailslurp-client"
// instantiate a client with API KEY
const mailslurp = new MailSlurp({ apiKey: 'your-api-key' })
// create an inbox with a random email address ending in @mailslurp.com
const { emailAddress, id } = await mailslurp.createInbox()
expect(emailAddress).toContain("@mailslurp.com")
// for full control over inbox email addresses use a custom domain
const customInbox = await mailslurp.createInbox("test@mydomain.com")

Powerful dashboards

Join the no-code revolution — test email workflows, send campaigns, create email addresses and more right from your browser. The full MailSlurp API without the need to write code. It's free to get started.

mailslurp dashboard

Developer Integrations

REST API and official SDKs in several popular programming languages. But you don't need to know code to use MailSlurp. Use the online dashboard to read and compose emails and attachments visually.

Features

MailSlurp offers powerful email functionality like on demand private inboxes, developer SDKs for sending and receiving email, HTML previews and team access.

Unlimited Email Addresses

Unlimited Email Addresses

Create real email inboxes on demand. Write code or use our online dashboard. Create randomly assigned email addresses or use your own custom domain. Create test email accounts, messaging bots, automated responses and more with MailSlurp's powerful email tools.

Read more
Receive Emails in Code

Receive Emails in Code

Fetch emails and attachment in code and tests. Automatic HTTP long-polling, WebSockets, and WebHook messaging. Use search, pattern-matching and callbacks. Get emails as JSON objects, octet-streams, or raw SMTP messages.

Read more
QA Test Email Processes

QA Test Email Processes

End-to-end test user sign-up and account verification using real email addresses. Test newsletters, notifications, HTML templates, attachments, and more.

Read more
HTML Previews and Spam Analysis

HTML Previews and Spam Analysis

Powerful online dashboard for reading and composing emails, viewing attachments, and validating HTML. Team access available.

Read more
Embeddable Email Forms

Embeddable Email Forms

Submit HTML forms to MailSlurp and receive submission directly to your email address. Attachments included! No server or signup required.

Read more
Email Masking and Aliases

Email Masking and Aliases

Create email proxies that hide your email from spammers. Create email aliases that forward to your hidden address.

Read more

Examples

See examples of how to send and receive emails with common frameworks.

Trusted by thousands

Join thousands of businesses and startups powered by MailSlurp. MailSlurp is free for personal use and has affordable pricing for companies of every size.

AxelSpringer
Trivago
Broadcom
Ring
NIB
Panasonic