Mailpit – An email and SMTP testing tool with API
github.com
github.com
Mail Catcher https://mailcatcher.me/
Lunatic SMTP https://github.com/anlar/lunaticsmtp
May take a look at Mailpit though. It has the advantage of having a native Docker image build, whereas for Mailcatcher I'm using a third-party Alpine-based image.
Also makes it very easy to see rendered HTML, HTML source, the text/plain part of a mailer, etc.
And as an excellent plus, the author is responsive to reasonable PRs!
Downside:
- it’s hosted, which may not be for everyone if your test emails contain sensitive information. Altho I think it never should.
- it sometimes is down
- it requires an internet connection
With an optional installation step this could run on port 25 as a regular person. Or authbind [1]
setcap cap_net_bind_service=+ep /path/to/mailpit
[1] - https://stackoverflow.com/questions/413807/is-there-a-way-fo... docker run -d --name=mailpit --restart unless-stopped -p 8025:8025 -p 1025:1025 axllent/mailpit
I can connect to port 1025 just fine.---
This test data isn't something that should be leaving the local network either.
Can you run mailtrap.io on your local machine or in your data center?
---
Oops, I accidentally set it to send all the emails. How much does it cost to handle 500 email in the next few minutes? Mailpit is free.
---
That 500 test email that were sent to mailpit, they're correct and should be sent out to the testers.
https://github.com/axllent/mailpit/wiki/SMTP-relay
What is the cost to forward 500 emails this week? And again next week?
---
Mailpit (and its predecessor Mailhog) were not difficult at all to spin up and test. Any developer with docker running on their machine can do local testing without any issues. Data never leaves the machine or intranet - this makes security types sweat less.
https://docs.aws.amazon.com/ses/latest/dg/send-an-email-from...
i have to apply regex to the email body and other stuff and keep only the relevant bit .
i see the managed softwares but i want something on my own vps.
[1] https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.ht...