Local mail delivery in Rails
You propably hear about delivery_method in ActionMailer. Common value is either :smtp or :sendmail. SMTP is good customizable. It uses localhost mail server by default, but it can be configured to use external server with some authorization (gmail mail servers, etc.). Disadvantage could be higher error-raise propability and low performance.
Sendmail delivery method looks less usable, but it can be very good combined with well configured local mail server.
Local mail delivery is:
faster, it is just local program call with passed arguments
more reliable, delivery errors raise later and don’t have to be handled by rails application
more universal, keeps application less informed about environment, what makes configuration easier?
Actually, this is not about smtp versus sendmail delivery, but local versus remote delivery. To be continued..