diff --git a/config/environments/production.rb b/config/environments/production.rb index 45b256ef5..d9de907da 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -58,6 +58,8 @@ Rails.application.configure do config.action_mailer.perform_caching = false + config.action_mailer.default_url_options = { host: ENV['PRODUCTION_HOST'], port: 3000 } + # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false diff --git a/config/environments/sandbox.rb b/config/environments/sandbox.rb index 45b256ef5..bfd72fce4 100644 --- a/config/environments/sandbox.rb +++ b/config/environments/sandbox.rb @@ -58,6 +58,8 @@ Rails.application.configure do config.action_mailer.perform_caching = false + config.action_mailer.default_url_options = { host: ENV['SANDBOX_HOST'], port: 3000 } + # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false