Created
September 8, 2011 05:44
-
-
Save tinomen/1202718 to your computer and use it in GitHub Desktop.
basic mail smtp setup
This file contains hidden or 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
# in enviornment.rb | |
config.after_initialize do | |
Mail.defaults do | |
delivery_method :smtp, { :address => "smtp.gmail.com", | |
:port => 587, | |
:domain => 'domain.com', | |
:from => '[email protected]', | |
:user_name => '[email protected]', | |
:password => 'secret', | |
:authentication => :login, | |
:enable_starttls_auto => true | |
} | |
end | |
end | |
# override in enviornments/test.rb | |
# delivery_metod :test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment