Created
May 8, 2014 23:13
-
-
Save johno/c87cbe4e2ab2a6ea5597 to your computer and use it in GitHub Desktop.
config/initializers/email.rb
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
unless Rails.env.development? || Rails.env.test? | |
config.action_mailer.default_url_options = { :host => 'www.myappurl.com' } | |
config.action_mailer.raise_delivery_errors = true | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { | |
:enable_starttls_auto => true, | |
:address => "smtp.gmail.com", | |
:port => 587, | |
:domain => "gmail.com", | |
:authentication => :login, | |
:user_name => "[email protected]", | |
:password => "password" | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment