MailSlurp logo

documentation

Official MailSlurp documentation

Find MailSlurp email and SMS API documentation, SDK guides, SMTP setup, and examples for JavaScript, Python, Java, C#, PHP, Go, Ruby, and more.

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.

Production implementation paths

Use the docs with intent-specific implementation pages to ship faster: