sajad torkamani

Install

macOS:

brew update && brew install mailhog

Ubuntu:

sudo apt-get -y install golang-go
go get github.com/mailhog/MailHog

Start MailHog

mailhog

This should output:

2022/04/25 17:10:31 Using in-memory storage
2022/04/25 17:10:31 [SMTP] Binding to address: 0.0.0.0:1025
[HTTP] Binding to address: 0.0.0.0:8025
2022/04/25 17:10:31 Serving under http://0.0.0.0:8025/
...

Navigate to http://0.0.0.0:8025 to view outgoing emails and other SMTP activity.

Sources

Tagged: Networking