←back to thread

297 points mooreds | 1 comments | | HN request time: 0.207s | source
Show context
iruoy ◴[] No.42175560[source]
A tool like this is very useful, but this one isn't being maintained anymore. MailHog isn't either.

MailPit, MailCrab and smtp4dev are modern alternatives.

https://github.com/axllent/mailpit

https://github.com/tweedegolf/mailcrab

https://github.com/rnwood/smtp4dev

replies(17): >>42175787 #>>42175928 #>>42176115 #>>42176725 #>>42176926 #>>42177546 #>>42177804 #>>42178339 #>>42178590 #>>42178720 #>>42179230 #>>42180316 #>>42182891 #>>42183452 #>>42183958 #>>42184126 #>>42187070 #
Onavo ◴[] No.42178720[source]
What’s the easiest way to receive email programmatically without having to resort to a hosted service like SES? Is the SMTP protocol simple enough that it can be implemented in for example a serverless lambda?
replies(4): >>42179103 #>>42179588 #>>42179838 #>>42183360 #
jedberg ◴[] No.42179103[source]
The protocol is quite simple to implement. The tricky part is triggering the lambda and then holding the connection open long enough to get the message.

You can’t trigger a lambda directly via tcp. You’d have to go through a gateway. That gateway would have to hold both sides of the connection open for a pretty long time.

It would be tricky but doable.

replies(1): >>42179387 #
1. Onavo ◴[] No.42179387[source]
What about a fly.io container?