Question

I'm looking for a simple service/software that will convert emails into HTTP POST requests so I don't have to code in separate code paths for email handling. Does such a thing exist?

Was it helpful?

Solution

Bit late but I was looking for something similar and came across http://www.email2http.net - they allow you to send your email to a web script via HTTP POST or GET and it includes attachments. If you only need 1 email address and script it's free.

OTHER TIPS

Google app engine converts incoming email into a POST to your app:

http://code.google.com/appengine/docs/python/mail/receivingmail.html

You could either handle the emails directly on app engine, or write a handler which calls back to your other site:

http://code.google.com/appengine/docs/python/urlfetch/overview.html

There are a couple services you might be interested in: http://mailhooks.com is a good free solution for this, but there may be a delay in the time to post, and I don't believe they include attachments.

You might also look at http://mailnuggets.com which is a paid service, but posts are quicker and it includes attachments.

I have needed to do this several times and always rolled my own Postfix solution. I finally made a docker container and open sourced it https://github.com/thingless/mailglove.

You could run Postfix or another mail server, configure it to accept the appropriate email, and then pipe the mail to a command which POSTs the data (using CURL or another framework).

Speaking SMTP correctly as a server isn't trivial. Access control is even harder. I'd say to use a real SMTP server.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top