mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
send emails when configured smtp configured from env
This commit is contained in:
1 parent
c57148eada
commit
6871a3f840
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user