Skip to content

Instantly share code, notes, and snippets.

@benzittlau
Created September 19, 2011 21:45
Show Gist options
  • Save benzittlau/1227704 to your computer and use it in GitHub Desktop.
Save benzittlau/1227704 to your computer and use it in GitHub Desktop.
Rails config settings for sending mail through gmail
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => 587,
:domain => "whatever.com",
:authentication => :plain,
:user_name => "xxxxxx@whatever.com",
:password => "xxxxxxxxx",
:openssl_verify_mode => OpenSSL::SSL::VERIFY_NONE
}
config.plugins = [ :exception_notification, :ssl_requirement, :all ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment