Simple SMTP server for local development usage

Bogdan Alexandru Militaru
1 min readAug 6, 2018

Today I needed a local smtp server and I tried to connect firstly with my gmail account, but that’s not a good idea, because maybe you don’t want to commit your credentials and share them with your team.

Use Gmail SMTP Settings

If you want to use gmail server, with your credentials, here are the credentials:

Host: smtp.gmail.com
Username: Your Gmail address (e.g. example@gmail.com)
Password: Your Gmail password
Port (TLS): 587
Port (SSL): 465
TLS/SSL required: trueUse Local Server

I installed MailCatcher and I discover that it’s very easy to install it and to use it.

About MailCatcher

MailCatcher runs a simple SMTP server, catch all the messages send to it and display them into a web interface.

How to use it

$ gem install mailcatcher

$ mailcatcher

Go to http://127.0.0.1:1080/ Send mail through smtp://127.0.0.1:1025 Use mailcatcher –help to see the command line options. The brave can get the source from the GitHub repository.

Github Repository can be found here

Originally published at https://whyboobo.com/tools/mail-server-localhost/ on August 6, 2018.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response