fix: enhance SMTP configuration check to include RESEND_API_KEY (#92)
This commit is contained in:
parent
d50f536f79
commit
8c851c9197
@ -19,7 +19,7 @@ class ApplicationMailer < ActionMailer::Base
|
|||||||
rescue_from(*ExceptionList::SMTP_EXCEPTIONS, with: :handle_smtp_exceptions)
|
rescue_from(*ExceptionList::SMTP_EXCEPTIONS, with: :handle_smtp_exceptions)
|
||||||
|
|
||||||
def smtp_config_set_or_development?
|
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
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user