Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Allows ActionMailer to use TLS (for gmail, etc.) via Stephen Chu
Ruby
branch: master
Failed to load latest commit information.
lib First commit
README.textile Suggest people check out action_mailer_optional_tls
init.rb First commit

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.