Official MailSlurp documentation

Developer documentation and guides for MailSlurp's email APIs. REST, SDKS, Graphql, SMTP and more. MailSlurp is an email and SMS API service for develop

MailSlurp is an email and SMS application programming interface for integrating email and TXT messages into your application. Find the developer portal and documentation for guides and reference documents.

Usage

The easiest way to get started with MailSlurp is by using the NPM node package.

npm install --save mailslurp-client

Create an inbox within your application to send and receive emails.

const inbox = await mailslurp.createInbox();
expect(inbox.emailAddress).toContain('@mailslurp');

Guides

Common language integrations

MailSlurp has SDK libraries for most common programming frameworks.

Csharp (.NET)

Golang

Java

NodeJS / Javascript / Typescript

PHP

Python

Ruby

For more clients see the developer documentation.

Related content

API Reference

Build powerful applications and test suites using real email addresses in code. Create inboxes on demand then send and receive emails and attachments in Javascript, Go, PHP, Ruby, Java, C#, REST and more.

Official MailSlurp documentation

Developer documentation and guides for MailSlurp's email APIs. REST, SDKS, Graphql, SMTP and more. MailSlurp is an email and SMS API service for develop

Ruby Mailer SDK - send and receive emails in Rails, Rspec and more using MailSlurp's official email Gem

Receive email and attachments with Rails, Rspec, and Ruby without SMTP using MailSlurp Ruby Gem.

Temporary email api

Temporary email API for disposable email accounts. Free for personal use with REST API and clients in NodeJS, CSharp and more.

Mailinator alternative

Alternatives to Mailinator for test email accounts. Create real email addresses using MailSlurp

Generate API clients using Swagger

How to create SDK libraries a language of your choice

Send email with Axios JS (and receive email too!)

Send email in Javascript with MailSlurp email API

Using Attachments

Use MailSlurp's attachment endpoints to upload, send, receive, and download attachments.

Using custom domains with MailSlurp

Email custom domains with API access

Create email inboxes using MailSlurp's API

Create email inboxes using MailSlurp's API

MailSlurp API entities and how to use them

MailSlurp API entities and how to use them

Get emails from code (how to receive emails programmatically)

How to receive emails directly in code, applications, and tests. Use MailSlurp to send and receive SMTP emails.

Sending email in Javascript and NodeJS (Typescript examples)

Sending email in Javascript and NodeJS (Typescript examples)

Ready to dive in?Start building email applications today.