From 8c851c919744d476615e954fd8417f39046b4526 Mon Sep 17 00:00:00 2001 From: Gabriel Jablonski Date: Sun, 10 Aug 2025 21:24:44 -0300 Subject: [PATCH] fix: enhance SMTP configuration check to include RESEND_API_KEY (#92) --- app/mailers/application_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 5d28ad5a4..c165302bf 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -19,7 +19,7 @@ class ApplicationMailer < ActionMailer::Base rescue_from(*ExceptionList::SMTP_EXCEPTIONS, with: :handle_smtp_exceptions) def smtp_config_set_or_development? - ENV.fetch('SMTP_ADDRESS', nil).present? || Rails.env.development? + ENV.fetch('SMTP_ADDRESS', nil).present? || ENV.fetch('RESEND_API_KEY', nil).present? || Rails.env.development? end private