I would like to allow users to send emails which are generated in my rails app from their email address .
I know I can just use my servers sendmail, and set the from address to their email address, but there is a high chance the emails will be marked as spam.
Is there a better way to do this? Can I use sendgrid, or Amazon SES or make the user input their own SMTP details.
Any suggestions or best practices would be much appreciated.
I believe SendGrid support customising the From address. Heroku provide them as an add-on and they advertise “Complete control over the From: address.” on their add-ons page