Safe email testing with Fake SMTP Server

Test emails safely, with 5-minute setup, zero maintenance, and no risk of spamming recipients’ inboxes

Everything you need for your testing environment

Testing environment ready in 5 minutes

Each Email Testing account comes with an individual testing environment. Integrate it with your app in just a few clicks.

Simple UI for your fake email server

No experience with setting up SMTP server required. Paste the credentials into your app to capture and view the emails in sandbox.

Separate inboxes for each of your environments

Create individual inboxes for different environments or review servers. Or route all emails into one inbox if you prefer.

No real emails are sent

Email Testing doesn’t connect to mail servers and captures all emails into a virtual inbox. There’s zero chance of accidentally emailing your users.

Use fake SMTP with any tool

Mailtrap can be integrated with any tool that supports SMTP. Use fake SMTP credentials in external tools to test what’s sent on your behalf.

Ditch maintaining your infrastructure

Say farewell to downtimes, upgrades or performance monitoring. We take care of them for you with 99,9%+ uptime.

Trusted by 150,000+ monthly active users

Capturing emails is easy with Fake SMTP Server

  • Sign up and copy the fake SMTP credentials

    Create an account and open the configuration of your testing environment. Copy the credentials or grab the ready code available for 20+ frameworks and libraries

  • Integrate your app and send the first email

    Add Mailtrap Email Testing as your SMTP server and trigger the first email to be sent. After a second or two, it will arrive into your Testing inbox.

  • Check the email content manually or automate the process

    Preview the email, check its HTML, spam score or raw headers. Use Testing API to do all of these automatically.

From our #BestClientsEver

Tom Ravn

I am testing Mailtrap last weeks. You can send emails from your domain for free. They allow 1000 mails/month. It is quite ok. It can be used with good old SMTP connection or via API.
12:49 PM – Feb 20, 2023

Joshua Lim S. Ming

I’ve dreaded setting up VPS’ to work with an external SMTP but @Mailtrap made things so easy! They’ve got the code and everything that you can copy and paste!
12:35 PM – Dec 02, 2022
Y’all know what’s really good? @Mailtrap
3:44 PM – May 16, 2023

Joshua Anderton

Just signed up for @Mailtrap and I’m loving it. So easy to set up. Provides so much peace of mind. Ahh just love it.
7:38 PM – Jan 13, 2021


After all these years of web development, how have I only JUST started using @Mailtrap. I had heard about it, but never got round to using it. An awesome way of testing emails 👏
1:25 PM – Nov 07, 2020

Alessandro Rodi

I love @Mailtrap. It removes all the asshole of configuring email servers in test environments. Great service! Is totally worth your money!
1:15 PM – Oct 20, 2020

Mr. Glass

Shout out to @Mailtrap, hands down the best way to handle mail sending in local/test environments.
11:43 PM – May 21, 2020

Rado Georgiev 

One thing we started using recently is @Mailtrap for our dev & staging environments. We were previously either turning email sending entirely off for staging or running SES + whitelist. Turns out, having a fake SMTP mailbox is great and you can test better with it.
1:32 PM – Jan 06, 2021

Doug Black Jr

Can we all agree @Mailtrap is a gift to developers everywhere? It just works SO easily out of the box!!!!
9:45 PM – Aug 11, 2020

Email testing toolset available with sandbox

HTML Checker

Validate the HTML/CSS rules included in your emails template. Gauge the support across popular clients – on web, mobile, and desktop.

Learn More

Testing API

Automate email testing with a flexible and well-documented API. Save time and be the first to know when something goes wrong.

Learn More

QA Automation

Build automated tests of your email sequences and include them in your testing suite. Verify each component of a message with Testing API.

Learn More