How To Trap Your Emails

Nov 18, 2014 · 3 min read

You have probably read our previous post about a few awesome tricks from Gmail that help you test your app emails with development addresses. That’s nice and pretty useful I would say, but what if I told that you could use any email address you want in your app with minimum effort?

At Hipwerk we are using a pretty nifty tool called Mailtrap from @Railsware. This is a SMTP service which literally traps any email sent from your app and stores them into a special inbox. Then you can check your messages from a simple webmail application provided by Mailtrap. Users may auto-forward any message to a real email address if it’s necessary.

Mailtrap is a fake SMTP server for development teams to test, view and share emails sent from the development and staging environments without spamming real customers. (official website)

That’s pretty cool, right? You can now use any email address, even stuff like:

[email protected] or [email protected].

This way you won’t pollute your work or personal inbox with tons of test messages and you avoid the embarasing situation when you accidentaly send a test email to a client while testing your app. You’ll probably say: “that’s great, but I don’t want all my emails to go in single inbox, I have multiple apps with various environments, I’ll probably end up in a mess and I’ll still be forced to have multiple accounts”. No worries, Mailtrap let’s you define multiple inboxes, each with their own separate configuration and credentials.

Even better; Mailtrap has yet another very useful feature: mailbox sharing. Imagine that you work in a team and you could share the same inbox for emails with all the team members. This way you won’t need to forward emails back and forth just so you can show to a colleague some wrong formatting or typos you discovered in one of your app emails.

Last but not least, Mailtrap analyzes your email and generates a spam & blacklist report. Then it tests your email HTML for compatibility issues with popular mail clients and platforms.

We have been using this tool for quite some time now and we are very happy with it. But hey! Don’t take my word, give it a try and drop a comment, tell us what you think or just spread the word about this awesome tool.

This post is the first from a series about the tools we use to make our lives easier and to build awesome stuff without the headache.

Till next time, stay tuned. We’ll be back with more goodies.


Originally published at on November 18, 2014.


we <code> startups

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store