mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
fix com from
This commit is contained in:
1 parent
2948910c25
commit
64b39b53a2
1 file changed
+7
-3
@@ -16,10 +16,14 @@ module ActionMailerConfigsInterceptor
|
||||
end
|
||||
|
||||
if Rails.env.production? && Rails.application.config.action_mailer.delivery_method
|
||||
message.from = ENV.fetch('SMTP_FROM').to_s.split(',').sample
|
||||
from = ENV.fetch('SMTP_FROM').to_s.split(',').sample
|
||||
|
||||
if message.from == 'DocuSeal <info@docuseal.com>'
|
||||
message.body.raw_source.gsub!('https://docuseal.co/', 'https://docuseal.com/')
|
||||
message.from = from
|
||||
|
||||
if from == 'DocuSeal <info@docuseal.com>'
|
||||
message.body.instance_variable_set(
|
||||
:@raw_source, message.body.raw_source.gsub('https://docuseal.co/', 'https://docuseal.com/')
|
||||
)
|
||||
end
|
||||
|
||||
return message
|
||||
|
||||
Reference in new issue
Block a user