I want to build an email service where people can send an email to a specific email address. such as example@exampleapp.com.<p>Then I am able to continuously read new emails, read the info on a server, process the info make API calls then generate an accurate response and send the appropriate response.<p>Any help with an appropriate stack and technologies would be greatly appreciated.
Some mail clients let you deliver mail to a script<p><a href="https://serverfault.com/questions/506894/how-to-route-email-to-a-script/507024" rel="nofollow">https://serverfault.com/questions/506894/how-to-route-email-...</a><p>In that case you'd need to run a mail server where you install a script. I've done it with qmail and postfix but I haven't run my own mail server for a long time.<p>Another option is to use an existing mail server but write a script that polls the mail server with POP or IMAP.<p>Today I'd consider doing it serverless with something like<p><a href="https://aws.amazon.com/about-aws/whats-new/2019/02/trigger-actions-on-your-inbound-email-with-aws-lambda-for-amazon-workmail/" rel="nofollow">https://aws.amazon.com/about-aws/whats-new/2019/02/trigger-a...</a><p>So far as the "stack" I would go with any mainstream platform, mostly driven by what you like. You could certainly do this with Python, Java, .NET, etc.
I'd use the inbound feature APIs of Mailgun/Sendgrid/Postmarkapp. They take care of receiving and parsing and can call a URL on your server with new email content. At least in the beginning you can concentrate on the business logic ("accurate response") and don't have to worry about character encodings, parsing attachments or such.