Temp mail API services compared

Use a throwaway email provider to create dynamic email addresses during testing and development.

Disposable email service examples

MailSlurp is an email service that provides real, permanent or disposable email addresses on demand. It has a simple REST API and developer toolkits in several major languages. It also includes an online dashboard for manage inboxes and preview emails and attachments (a bit like the Gmail API). MailSlurp is like a fake mail generator for disposable mail boxes.

Random addresses (single-use mailservers)

Services like MailSlurp let you generate disposable or throw-away mailboxes that can be used for testing applications, prototyping, or for anonymous communications.

Create real email addresses on demand in code and online

create new inbox

MailSlurp lets you create unlimited disposable email addresses using our disposable email api service. MailSlurp provides free REST APIs and official clients in over 10 programming languages to let you create real email addresses programmatically or manually using the disposable email api dashboard.

Create inboxes using code

Using the official MailSlurp javascript client you can create test email accounts in tests.

Getting started

Install Mailslurp's Javascript client or use one of the official MailSlurp clients in your language of preference. We can then use the client to create throwaway email or fake mail inboxes.

npm install --save mailslurp-client

Configure the client using your API key (you can find your API key by logging into the dashboard).

const MailSlurp = require('mailslurp-client').default;
const mailslurp = new MailSlurp({
  apiKey: process.env.API_KEY ?? 'your-api-key',
});

Then you can create an inbox using the create inbox method.

const inbox = await mailslurp.createInbox();

console.log(inbox);

Get started today

Disposable email addresses are useful for a wide range of applications and tests. Today there are more providers that ever but none exceed the features and flexibility of MailSlurp. You can find more examples of using the disposable email api service in the getting started guide or inbox creating tutorial.