Skip to content
Allows ActionMailer to use TLS (for gmail, etc.) via Stephen Chu
Ruby
Failed to load latest commit information.
lib First commit Feb 2, 2009
README.textile Suggest people check out action_mailer_optional_tls May 21, 2009
init.rb First commit Feb 2, 2009

README.textile

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
Something went wrong with that request. Please try again.