From 4778c773b33a33817c14424cc7a430ccef3f88a3 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Fri, 2 Dec 2022 19:13:56 +0100 Subject: [PATCH] fix(dev): fix helo integration --- config/environments/development.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index a1594fc5c..a31e2caf1 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -76,7 +76,7 @@ Rails.application.configure do config.assets.raise_runtime_errors = true # Action Mailer settings - config.action_mailer.delivery_method = :letter_opener + config.action_mailer.delivery_method = ENV['HELO_ENABLED'] == 'enabled' ? :helo : :letter_opener config.action_mailer.default_url_options = { host: ENV.fetch("APP_HOST") } config.action_mailer.asset_host = "http://" + ENV.fetch("APP_HOST")