Email APIs for developers and QA Testers
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.
Email in code
Create real email addresses on demand. Send and receive email in Javascript, Ruby, PHP, Python, Java, and more. Built for developers and QA testers to build email functionality and test email related processes.
// install package with `npm install --save mailslurp-client`
import { MailSlurp } from "mailslurp-client"
// instantiate a client with API KEY
const mailslurp = new MailSlurp({ apiKey: 'your-api-key' })
// create an inbox with a random email address ending in @mailslurp.com
const { emailAddress, id } = await mailslurp.createInbox()
expect(emailAddress).toContain("@mailslurp.com")
// for full control over inbox email addresses use a custom domain
const customInbox = await mailslurp.createInbox("test@mydomain.com")
Official SDKs and plugins
Documentation
MailSlurp has official libraries is several popular languages. We also have an easy to use REST API that you can call from any language. If you are looking for a no-code solution try our email dashboard.
Code examples
Test email sending and receive emails without a mail server.
Send and receive email in DotNET Nunit tests using Selenium and MailSlurp.
Use real email accounts in CypressJS to test user sign-up, email verification, and more.
How to send and receive emails in Go (test email addresses).
Testing user sign up in Java using TestNG and MailSlurp test email accounts
Write acceptance tests in PHP with real email addresses using Codeception and MailSlurp
How to send and receive emails in PHPUnit tests.
Send and receive email in Pytest Python tests.
Receive emails in Java test suites using MailSlurp, Junit, and Selenium.
Cucumber example project using Capybara to test user authentication using real email addresses.
Test email sign-up. password verification and more with Cypress JS and MailSlurp.
Generate test email accounts with Ruby and Cucumber. Test email sign-up, password verification and more.
Email acceptance testing with Serenity and MailSlurp. Test applications with real email addresses.
Test email related processes like sign-up and verification using WDIO WebDriver and MailSlurp.
Test email accounts in React with Jest and Puppeteer. Send and receive emails in Javascript.
End-to-end testing with MailSlurp, NodeJS, and TestCafe.
How to test .NET authentication and sign-up using real email accounts with MailSlurp and SpecFlow.
Python automation email testing Robotframework plugin
Languages
Official Javascript MailSlurp client. Supports Typescript and Webpack.
Official MailSlurp Cypress JS plugin. Use real email accounts in Cypress to test user sign-up, email verification and more.
MailSlurp REST API documentation. Includes Swagger/Open API specs.
C++ MailSlurp library for embedded email processing.
MailSlurp Crystal library. Send and receive email and attachments in Kotlin
ASP/DotNET email address library and SDK. Receive and send email from code and tests.
Dart-lang email library for MailSlurp.
Send and receive emails with Erlang, Elixir, and Phoenix. Official MailSlurp package on Hex.
Email library for Golang. Easily send and receive email and attachments in Go.
Graph QL
Java mailserver library create email addresses in Kotlin, Groovy, Java and more. Send and receive emails for code and tests.
Kotlin Email Library for testing and development. Create test email accounts in Java and Kotlin.
MailSlurp Lua library. Send and receive email and attachments in Lua
Email library for Nim. Create email accounts, send and receive emails and attachments in Nim-lang.
Objective C email library for iOS and Mac.
Send and receive emails in Perl with MailSlurp
Create email addresses in Wordpress, Laravel, Symfony and more. Send and receive email and attachments in PHP.
MailSlurp API Protobuf definitions
MailServer SDK using Python and PyPi. Send and receive emails in Python using MailSlurp.
Generate test email accounts in Ruby, Rspec, Cucumber and more. Send and receive emails in Rails and JRuby.
Rust email library for MailSlurp.
Swift email library. Send emails in Swift and iOS. Receive emails in Swift code and tests.
Typescript Email Library for creating test email accounts in Node without SMTP.
Guides
Install and configure MailSlurp using SDK libraries or REST API.
How to create an inbox with MailSlurp to send and receive emails with.
Use regex or server side matching to extract email content
Read emails and attachments in code and tests. Wait for unread emails using long-polling or webhooks.
Use MailSlurp to test email related functionality using real email addresses.
Create an account and API Key. How to sign-up and login. Manage your settings and plan.
List email addresses created in MailSlurp
How to use custom domains with MailSlurp.
Send and receive emails from custom domains using the MailSlurp web app.
How to create email address with wild-card catch all using MailSlurp. Screenshots included.
Receive emails with http webhooks. Webhooks let you respond to inbound email streams in real time on your server or within an application.
MailSlurp custom email address guide for catch all email routing.
How to wait for emails in code that match search criteria. Pattern matching and regular expressions.
Manage payment, access, and usage limits. How to upgrade, alter your subscription, and view invoices.
Submit forms directly to email. No code or sign-up required.
How to send emails and attachments in code and tests.
Email forwarding API for automatic email proxy. Setup auto-forwarding email aliases to mask a real email address.
Manage team access to email inboxes within an organization.
How to manage MailSlurp team access to an organization.