a blog for those who code

Friday 5 June 2015

Debug Emails Using MailCatcher

In this post we are going to discuss about email debugging using MailCatcher. Today, email is the main form of communication for most people around the world and almost all applications use email to communicate. Have you ever tested, how your email will look like when it will reach to your customer. Or accidentally your clients have received test emails.

You have been there and if you don't want to be there again, then use MailCatcher (it catches mail and serves it through a dream). According to MailCatcher, it runs a super simple SMTP server which catches any message sent to it to display in a web interface. Run mailcatcher, set your favorite app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, then check out http://127.0,0.1:1080 to see the mail that's arrived so far.

The importance of using MailCatcher is that, it will ensure that no email ever gets sent outside of your network, or even outside your development server. The features of MailCatcher are :

PC : http://mailcatcher.me/

To install you need to run the command gem install maicatcher. Then you can go to http://localhost:1080/ to see the Web UI. You need to send mail through smtp://localhost:1025 from your application.

The MailCatcher Web UI has a pretty simple interface, which you can able to see at http://localhost:1080. It will list all the emails in the MailCatcher queue, when available, at the top.


In this post we have only discussed what is MailCatcher and how to set it up. It is very easy to set up and if you are using test and live configurations in your application then you can definitely take use of this awesome tool.

Do you already use MailCatcher? Share your experience with us. Please Like and Share the Blog, if you find it interesting and helpful.

No comments:

Post a Comment