From a3451e4075e8d20be5656589631c43cdcecc92e3 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 7 Dec 2021 14:20:33 +0000 Subject: [PATCH] Set action mailer host to env vars --- config/environments/production.rb | 2 ++ config/environments/sandbox.rb | 2 ++ 2 files changed, 4 insertions(+) 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