Created
January 29, 2014 01:38
-
-
Save LibertysYarn/8680135 to your computer and use it in GitHub Desktop.
Send email with GMail SMTP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 => '[email protected]', | |
:password => 'assword' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment