Using Email APIs to test your app

How to send and receive email in applications and tests using on-demand email accounts.


MailSlurp is an email API service for creating email addresses on demand from which you can send and receive email in code or online. It has a simple HTTP API plus official libraries in Javascript, Python, PHP, Java, Golang, Ruby, Objective C, and C# / DotNet.

Email addresses on demand

Create new private email addresses on demand from applications or tests. (Examples in Javascript but available in all languages.)

Fetch emails in code

Receive emails directly in tests or applications.

Use pattern matching

Search for emails matching field or body conditions. Use email with powerful helper functions.

Extract content and verify

You can use MailSlurp to extract email contents and attachments for use in tests or email processing pipelines.

Send email attachments

Easily send attachments and emails in code without SMTP setup.

WebHook queues

Have received messages sent directly to your server in a queue system with webhooks.

Send templated emails

Send HTML emails with Handlebars templating support.

Convenient UI

Manage your API usage and team access with our online dashboard.

MailSlurp is free for personal use and scales with your team. Try it today.

Originally published at

Test Email API for end-to-end with real email addresses. Support for NodeJS, PHP, Python, Ruby, Java, C# and more. See for details.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store