From 3b2770bc1a0fa22cc56ab6c935376cbf78bab572 Mon Sep 17 00:00:00 2001 From: Mir Bhatia Date: Mon, 22 Dec 2025 07:12:09 +0100 Subject: [PATCH] Update mailer delivery_method in dev environment --- config/environments/development.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index ccedb26ed4f..5b67e06e9a5 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -110,8 +110,8 @@ Rails.application.configure do # Raise error when a before_action's only/except options reference missing actions config.action_controller.raise_on_missing_callback_actions = true - # Send mails to browser window - config.action_mailer.delivery_method = :letter_opener_web + # Send mails to browser window (unless configured otherwise) + config.action_mailer.delivery_method = ENV["OPENPROJECT_EMAIL_DELIVERY_METHOD"]&.to_sym || :letter_opener_web # Set email preview locations to rspec config.action_mailer.preview_paths << Rails.root.join("spec/mailers/previews")