Skip to content

Instantly share code, notes, and snippets.

@LibertysYarn
Created January 29, 2014 01:38
Show Gist options
  • Save LibertysYarn/8680135 to your computer and use it in GitHub Desktop.
Save LibertysYarn/8680135 to your computer and use it in GitHub Desktop.
Send email with GMail SMTP
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true, #this is the important shit!
:address => 'smtp.gmail.com',
:port => 587,
:domain => 'your.domain.com',
:authentication => :plain,
:user_name => 'login@your.domain.com',
:password => 'assword'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment