Access http://localhost:8025
.
# in container
~ $ which MailHog
/usr/local/bin/MailHog
~ $ which sendmail
/usr/sbin/sendmail
$ sendmail -S localhost:1025 <<EOF
From: App <[email protected]>
To: Test <[email protected]>
Subject: Test message
Some content!
EOF
$ python ex_mailhog.py