/actionmailer-tls

Allows ActionMailer to use TLS (for gmail, etc.) via Stephen Chu

Primary LanguageRuby

ActionMailer TLS

Allows ActionMailer to use TLS (for GMail, etc.)

Initial commit is from this blog post: How to use GMail SMTP server to send emails in Rails ActionMailer

You should take a look at this plugin, from CollectiveIdea action_mailer_optional_tls same idea a lot cleaner syntax

Sample configuration

Rails::Initializer.run do |config|
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
    :address => "smtp.gmail.com",
    :port => 587,
    :authentication => :plain,
    :domain => INSERT_MAIL_DOMAIN,
    :user_name => INSERT_MAIL_ADDRESS,
    :password => INSRT_MAIL_PASSWORD
  }
end