Skip to content

Instantly share code, notes, and snippets.

@hone
Created October 15, 2009 16:55
Show Gist options
  • Save hone/211089 to your computer and use it in GitHub Desktop.
Save hone/211089 to your computer and use it in GitHub Desktop.
config.gem "openrain-action_mailer_tls",
:lib => "smtp_tls.rb",
:source => "http://gems.github.com"
require 'smtp_tls'
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:authentication => :plain,
:enable_starttls_auto => true,
:user_name => xxx,
:password => xxx
}
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment