mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23: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
|
end
|
||||||
|
|
||||||
if Rails.env.production? && Rails.application.config.action_mailer.delivery_method
|
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.from = from
|
||||||
message.body.raw_source.gsub!('https://docuseal.co/', 'https://docuseal.com/')
|
|
||||||
|
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
|
end
|
||||||
|
|
||||||
return message
|
return message
|
||||||
|
|||||||
Reference in new issue
Block a user