Who knew that sending an email using ActionMailer and TLS would be so difficult? It turns out that ActionMailer isn’t equipped to work with SSL connections to SMTP servers. There is, however, a plugin created to get ActionMailer to work with TLS here.

The official documentation for ActionMailer can be found here and a good tutorial can be found here. Once you add the TLS plugin, the only difference you need to make is to set

:tls => true

when you set

config.action_mailer.smtp_setting = { ... }

in environment.rb. And be sure to use the correct port for your email server.