Created
June 14, 2017 05:41
-
-
Save roberttravispierce/aca9a2b2ebe6e4de5586241762d1bde2 to your computer and use it in GitHub Desktop.
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 Config | |
config.action_mailer.perform_deliveries = true | |
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } | |
config.action_mailer.raise_delivery_errors = true | |
config.action_mailer.perform_caching = false | |
# MailCatcher gem settings | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 } | |
... |
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
fa;sldkganbds |
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 Config | |
config.action_mailer.perform_deliveries = true | |
config.action_mailer.raise_delivery_errors = false | |
config.action_mailer.perform_caching = false | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { | |
:address => "smtp.sendgrid.net", | |
:port => 587, # ports 587 and 2525 are also supported with STARTTLS | |
:enable_starttls_auto => true, # detects and uses STARTTLS | |
:user_name => ENV["SENDGRID_USERNAME"], | |
:password => ENV["SENDGRID_PASSWORD"], # SMTP password is any valid API key, when user_name is "apikey". | |
:authentication => 'login', | |
:domain => ENV['DOMAIN_NAME'] | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment