Skip to content

Instantly share code, notes, and snippets.

@empika
Created May 26, 2010 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save empika/415156 to your computer and use it in GitHub Desktop.
Save empika/415156 to your computer and use it in GitHub Desktop.
require 'tlsmail'
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "mydomain.co.uk",
:user_name => "e@mydomain.co.uk",
:password => "password",
:authentication => :login,
:tls => true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment