Fake SMTP servers for safe testing that prevent any outbound emails from reaching real users

Test emails safely with no risk of spamming users with real emails

MailSlurp virtual inboxes are email addresses with fake SMTP servers that allow you to trap email sending during tests and avoid spamming real users. Virtual email accounts are perfect for application testing and transactional emails. They are a safe way to test without the risk of real users receiving spammy messages. Consider MailSlurp as a powerful alternative to faker mail services and a free email testing tool.

fake smtp server

How to create a fake SMTP mail server

You can create virtual inboxes easily with MailSlurp's email API clients. Here is an example using the Javascript email library:

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

// create a virtual inbox
const inbox = await mailslurp.inboxController.createInbox({
  virtualInbox: true,
});

Features

Test emails safely with zero maintenance and a quick setup.

Separate inboxes for every environment

Create individual inboxes or set up fake email for each environment or review server for your application. Test email actions on each commit using real email accounts that can receive emails but will never send emails to any of your customers.

Connect to fake SMTP with any tool

MailSlurp SMTP inboxes can virtual meaning you can connect using any SMTP tool.

No real emails are sent

Virtual inboxes won't connect to any outside mail servers and capture all emails you send into a virtual sent box. Zero risk of accidentally emailing real users.

Capture emails easily with MailSlurp

How to get started in 3 easy steps:

Sign up for MailSlurp and get SMTP access

Create an account and open the configuration for SMTP and IMAP access credentials. You can alternatively use Postman or SDK libraries in over 10+ languages and frameworks.

Integrate your email client, application, or tests

Use the SMTP and IMAP settings to configure your tests or server so that emails sent during testing or in staging environments is caught by virtual inboxes.

Check the virtual sent email records or automate it

Every email you send using the fake SMTP servers will be caught. You can view the emails that would have been sent in the MailSlurp dashboard or using code.

What is mock email?

Fake SMTP servers allow for mock email sending and receiving. You can use MailSlurp to create a fake work email

Related content

Fake SMTP servers for safe testing that prevent any outbound emails from reaching real users

Test emails safely with no risk of spamming users with real emails

Java email library for SMTP and creating email addresses

MailSlurp Java SDK for sending and receive email and attachments on the JVM.

SMTP email application libraries

How to send email in CSharp, PHP, Ruby, Java, Python, and NodeJS using the SMTP protocol and MailSlurp mailservers.

Cuentas de correo - correo temporal

Cuentas de correo desechables para pruebas y uso privado.

Temporary email API

Temp mail api for creating disposable email addresses in tests and code.

Temp mail API services compared

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

List of free Mailinator alternative

Free disposable email accounts for testing and development!

1111 SMTP Connections failing

1111 SMTP Connections failing

How to Send an Email in Python

Send emails using SMTP mailer in Python. Detailed tutorial for sending mail in Python.

How to send emails in Javascript (NodeJS)

JS SMTP email sending guide using HTML and NodeJS.

PHPMailer tutorial (Sending email with PHP)

PHPMailer tutorial (Sending email with PHP)

How to send an email using Powershell (Windows and cross-platform)

Use Send-MailMessage in Windows Powershell to send emails using an SMTP server or MailSlurp's free email API.

How to send email in R

RLang tutorial for sending emails over SMTP.

SMTP Commands and Response Codes List

A full list of commands and response status codes for SMTP mail servers when sending emails.

Test SMTP servers with Telnet

How to use Telnet to test the SMTP servers?

What Is Amazon Simple Storage Service (SES) - And How Can I Use It?

Amazon SES is an email service among virtual servers, AI apps, and libraries. Ideally, you can integrate your email system with your program hosted on Amazon.

Grab all details about an SMTP Port

What are common SMTP mail server ports and how do you find them?

Which SMTP Port Should I Use?

Picking the right port for SMTP mailservers

Avoiding email spam filters

How to send emails that don't trigger a spam warning.

BCC and CC in SMTP emails

What is cc and bcc in email? What is the difference between cc and bcc?

BCC For Email: What It Means And When To Use It

What is BCC email field (blind carbon copy) and how does it differ to CC?

What Is The Best SMTP Port To Use?

MailServers use TCP ports to transmit emails. Picking the right port between 25 vs 2555, 465 vs 587 in SMTP is easy with this guide.

How to configure Mail desktop clients with MailSlurp

How to setup MailSlurp with Outlook, Gmail, Thunderbird, Mail app and more.

Send email with CSharp using SMTP Client and MailSlurp

Create a custom SMTP client and access MailSlurp inboxes from CSharp/DotNET.

DMARC – All Facts that you should know

DMARC – All Facts that you should know

Email size limits

Email size limits

The Fundamentals Of Email Subdomains

How to manage email subdomain custom mailboxes using SMTP/IMAP mailserver settings.

How to send emails in VBA

Send email in Visual basic

A guide to PHP Mailer

A guide to PHP Mailer

SMTP IMAP Settings

How to access MailSlurp email accounts using IMAP and SMTP servers

MailSlurp NodeMailer SMTP Usage

Use SMTP nodemailer with MailSlurp disposable email addresses

SMTP Relay for outbound smtp servers

How to use SMTP relay to address spam and security issues that affect outbound mail servers.

SMTP vs HTTP MailSlurp inboxes

The difference between HTTP and SMTP inboxes and domains in MailSlurp.

What are SMTP ports

What are SMTP ports

CSharp send SMTP email

How to use CSharp SMTP client to send email with MailSlurp mail server

Send SMTP email with Java

How to use Java SMTP client to send email with MailSlurp mail server on the JDK

Send emails in NodeJS using SMTP

How to use Javascript SMTP client (or Nodemailer) to send email with MailSlurp mail server

Send SMTP emails with PHP

Use PHPMailer to send emails with SMTP and MailSlurp

Send SMTP email with Python (using SMTPLib)

How to send emails with Python's built-in SMTP client and MailSlurp mail servers.

Ruby send SMTP email

How to use Ruby SMTP client to send email with the MailSlurp mail servers

Ready to dive in?Start building email applications today.