Rails’ ActionMailer library can send e-mail for you, and while it can be set up to use almost any SMTP server, special requirements by Google’s GMail SMTP server have presented Rails users from taking advantage of it. Ages ago I mentioned a solution to the problem, but it involved downloading a separate application called ‘msmtp’ and performing an ugly system call from your application.
There’s a far cleaner solution, and it’s escaped my attention for almost five months now. Anatol Pomozov has written a small library using net/smtp and OpenSSL that changes some of net/smtp’s methods to allow it to directly talk to secure SMTP servers such as GMail’s. Read More