Skip to content
Browse files

Add production mailgun config

  • Loading branch information...
1 parent 60ead6a commit 75ec2088280c1dbc8e26d34864f35015a6f38e51 @leesmith committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 config/environments/production.rb
View
13 config/environments/production.rb
@@ -51,6 +51,18 @@
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
+ config.action_mailer.perform_deliveries = true
+ config.action_mailer.default_url_options = { host: 'decent-authentication.herokuapp.com' }
+ config.action_mailer.delivery_method = :smtp
+ config.action_mailer.smtp_settings = {
+ :authentication => :plain,
+ :address => ENV['MAILGUN_SMTP_SERVER'],
+ :port => ENV['MAILGUN_SMTP_PORT'],
+ :domain => 'decent-authentication.herokuapp.com',
+ :user_name => ENV['MAILGUN_SMTP_LOGIN'],
+ :password => ENV['MAILGUN_SMTP_PASSWORD']
+ }
+
# Enable threaded mode
# config.threadsafe!
@@ -64,4 +76,5 @@
# Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL)
# config.active_record.auto_explain_threshold_in_seconds = 0.5
+
end

0 comments on commit 75ec208

Please sign in to comment.
Something went wrong with that request. Please try again.