mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
fix demo mode
This commit is contained in:
1 parent
4ffd198505
commit
03ad848d45
5 files changed
+12
-4
No files matched your search
@@ -4,6 +4,12 @@ module ActionMailerConfigsInterceptor
|
||||
module_function
|
||||
|
||||
def delivering_email(message)
|
||||
if Docuseal.demo?
|
||||
message.delivery_method(:test)
|
||||
|
||||
return message
|
||||
end
|
||||
|
||||
if Rails.env.production? && Rails.application.config.action_mailer.delivery_method
|
||||
message.from = ENV.fetch('SMTP_FROM')
|
||||
|
||||
|
||||
Reference in new issue
Block a user