Reputation: 11159
Is there any preferred or recommended method for adding outgoing email support to a web app? I need it for the usual: user registration confirmation, notifications etc.
I've had some luck with installing postfix side by side with the webserver, but it doesn't seem to be very reliable. One of the clients wasn't able to receive emails due to their server blocking emails from my server for some unknown reason until they white-listed me manually (perhaps because I faked the sender address domain to be the same as the client's).
Is there a reliable fool proof method for doing this all too common task?
I would prefer not to go to a third party service.
Upvotes: 0
Views: 39
Reputation: 179994
Is there a reliable fool proof method for doing this all too common task?
No. Sending outgoing email is deceptively simple from a technical standpoint. You find quickly that the actual practice of it is frustrating and prone to issues like server reputation, greylisting, feedback loops, blacklists, etc. Letting a third-party handle it - some examples include Amazon SES, Mandrill, Sendgrid, Postmark - is generally the best way to do things.
Upvotes: 1