From 6871a3f8409e347d087776d0195cba0f34d2d8b9 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Fri, 11 Aug 2023 18:32:43 +0300 Subject: [PATCH] send emails when configured smtp configured from env --- lib/accounts.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/accounts.rb b/lib/accounts.rb index e814f0a7..a99bf61e 100644 --- a/lib/accounts.rb +++ b/lib/accounts.rb @@ -62,6 +62,7 @@ module Accounts def can_send_emails?(account) return true if Docuseal.multitenant? + return true if ENV['SMTP_ADDRESS'].present? EncryptedConfig.exists?(account_id: account.id, key: EncryptedConfig::EMAIL_SMTP_KEY) end