Sometimes, you need to send email during software development, and you need to be able to receive the email, even if the addresses are fake (say, to @example.org) and what have you.
The node package, fake-smtp-server
is a handy tool for providing a server to receive the mail, and an interface for viewing the email that was sent.
https://www.npmjs.com/package/fake-smtp-server
Install globally on a system with:
npm install -g fake-smtp-server
Start it up:
fake-smtp-server
If you want to have it on port 25 as most mail servers expect, run as root:
sudo fake-smtp-server -s 25
View the emails received (by default) at
http://localhost:1080
You can change that port, too:
sudo fake-smtp-server -h 8888
A few other configurations, and an API. Great little tool.