fix: enhance SMTP configuration check to include RESEND_API_KEY (#92)

This commit is contained in:
Gabriel Jablonski 2025-08-10 21:24:44 -03:00 committed by GitHub
parent d50f536f79
commit 8c851c9197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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