Skip to content

Instantly share code, notes, and snippets.

@luckydev
Created July 26, 2010 11:16
Show Gist options
  • Save luckydev/490431 to your computer and use it in GitHub Desktop.
Save luckydev/490431 to your computer and use it in GitHub Desktop.
require 'tlsmail'
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
ActionMailer::Base.delivery_method= :smtp
ActionMailer::Base.perform_deliveries= false
ActionMailer::Base.default_charset="utf-8"
ActionMailer::Base.raise_delivery_errors =true
ActionMailer::Base.smtp_settings= {
:domain => "http://www.pragmatic.com",
:address => "smtp.gmail.com",
:port => 587,
:tls => true,
:authentication => :login,
:user_name => "lucky.bug89",
:password => "luckybug"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment