Hi All, this document shows you how to install mail catcher in ubuntu.
Mail catcher is an open source SMTP tool where the developer uses to see the email sent out by the application without waiting for the email provider.
As you know there are many alternatives for mail catcher such as mailtrap works in the same way but has some restrictions such per second they allow only a few emails. So in order to overcome this type of situation developers can start using mail catcher as their fake SMTP server.

Installation

Step1: Install the dependency packages.

apt-get update
apt-get install -y build-essential software-properties-common
apt-get install -y libsqlite3-dev ruby1.9.1-dev

Step 2: Install mail catcher

gem install mailcatcher

Step 3: Start mail catcher.

 

mailcatcher --ip <Public IP address>

Step 4: Now login to the web interface to see the email received to Mail catcher from the application


In your application you can use the SMTP configuration as smtp://127.0.0.1:1025 to send emails or you can change the SMTP port as per your needs,
mailcatcher –smtp-port <portnumber>

 

© 2019, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Prabhin Prabharkaran

He is Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!!

0 Comments

Leave a Reply

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.