Mailtrap is well-known among web developers as an online tool for safe email testing in dev and staging environments. It is frequently used as a fake SMTP server to catch test emails, view them in virtual inboxes, and debug before sending to real users.
Notwithstanding the programming language or framework you use to build your app, Mailtrap can be easily integrated via API or as an SMTP server. You can use it to check whether your email script actually works and then view your emails in Mailtrap’s web interface. Mailtrap demonstrates how the message is rendered and shows the instant HTML code with a list of possible errors.
In addition, Mailtrap provides a wide set of features that makes it a ubiquitous tool for versatile email testing and monitoring.
1. Bcc testing
How can you check whether Bcc actually works in your email script and then inspect Bcc’ed emails without sending them? Email testing tools rarely support Bcc since it is not a regular SMTP header like Cc or To.
In Mailtrap, you will see all Bcc’ed addresses and will be able to verify whether they stay invisible for the main message recipients:
Mailtrap inspects SMTP commands in the message, checks whether there is a difference between message headers and recipients and if found, prints it out to the Bcc field.
Pro Tip: Check our Using and Testing Cc and Bcc in SMTP Protocol article to learn how Bcc works and how to use advanced Mailtrap functionality for safe email testing.
2. Virtual inbox for each server where ALL emails from ALL users are collected
When testing emails, developers usually face two main issues:
- sending test messages to real users
- flooding your own and your colleagues’ inboxes with sample emails
They are solved in many ways, including fake email addresses, creating various filters in your inboxes to separate test emails from several servers, and other complicated tricks.
Mailtrap provides you with an easy solution: each server gets its own virtual Mailtrap inbox where all emails from all users are collected and stored.
This way, your test messages are safe, well-organized, easy to find, and available for viewing and analyzing at any time.
If you work on different apps or with several customers, you can easily organize your test emails with Mailtrap projects. They work like folders
3. Crucial email testing reports available at once
There are hundreds of tools for email testing. One category will help you check email sending via API or SMTP, another will let you preview and analyze email content, and a different tool will run a spam check.
With Mailtrap, you get the results of several tests at once, right in your virtual inbox.
- Message preview. You will see how the message should look in your recipient’s web client (the HTML tab).
- HTML and CSS validation. You will instantly see how many bugs your email has in each email client without needing to check screenshots or previews. You get the list of errors with a reference to the line of code that requires fixes (the Check HTML tab).
- Spam score and blacklists report. The Analysis tab demonstrates the message spam rate with a list of reasons, which can affect deliverability. In the same place, you get the results of your domain reputation inspection.
4. Customizable email address for each inbox
When you need to run email tests in a production environment, you can also use Mailtrap. A unique email address can be activated for each of your inboxes. It is customizable and supports
+any_text. This way, you can get an infinite list of test email addresses that land in a single inbox.
What is special about this email feature in Mailtrap, is that sending test emails to its inboxes doesn’t affect your domain’s reputation (unlike using fake or unengaged email addresses.
Most frequently, our customers use this feature to load test their distributed email systems by sending messages from each server to a separate inbox:
Alternatively, with Mailtrap’s test email address, you can monitor the performance of your email system on production. Just add it to the Bcc and receive a copy of each message you are sending to your customers!
Pro Tip: Learn in more detail how you can use this feature to test and monitor high-volume email sending.
[wd_hustle id=”1″ type=”embedded”/]
5. Manual and automatic email forwarding
You can forward messages that you receive in Mailtrap to the real email addresses (once confirmed by their owners). It can be done automatically with a set of forwarding rules or selected manually. This way, you can notify anyone about the testing progress or just view messages in your usual email client.
Also, you can check the spam score and make sure that your domain is not blacklisted, without needing to utilize external spam checkers.
What else you can do with Mailtrap
With Mailtrap, you can thoroughly and safely test both transactional and marketing emails:
- validate your email sending functionality
- view your test emails organized to inboxes and projects
- inspect dynamic content in your message to make sure it works as designed
- share your email testing results with team members
- monitor your email sending on production (check the real messages sent to your users)
Check out the detailed list of Mailtrap capabilities worth trying now.
Learn how exactly Mailtrap can help you streamline email testing processes from our case study with The Software House.