Test with real email addresses

Use MailSlurp to test critical application functions (like user sign-up and account confirmation) with real email addresses.

  • Table of contents

disposable email

If you're testing anything related to emails you should definitely be using MailSlurp. MailSlurp lets you test email related processes like user sign-up, password reset, account confirmation and more.

Test your app properly

MailSlurp lets you create test email addresses on demand that you can send and receive real email with. Test your application fully, end-to-end, using real test email accounts. It's free for personal use and is built on scalable cloud infrastructure.

How it works

MailSlurp is an email API that is callable via REST API, SDK libraries, or visual dashboard. MailSlurp lets you create email addresses on demand, either randomly generated or specified using your own custom domains.

In practice

MailSlurp is based around inboxes: modern abstractions on an underlying SMTP protocol. Using the API or SDKs you can create inboxes dynamically during each test run.

const { emailAddress } = await mailslurp.createInbox();

Calling the API without arguments assigns you a randomized address ending in @mailslurp.com. To use your own domain simply register the correct MX records inside our dashboard and the pass your desired email address to the create method.

const { emailAddress } = await mailslurp.createInbox({
  emailAddress: "test5@mydomain.com",

Use cases

MailSlurp users create thousands of emails each day and use them for a wide range of test purposes. Imagine:

  • Testing user sign-up end to end with real email addresses
  • Extracting email verification codes from within tests
  • Testing transaction emails and attachments with automated tests
  • And more!

Getting started

MailSlurp is free for personal use so try it today. There is an easy to use API and a range of official libraries in several languages. Sign up to get started.