mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23: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)
|
def can_send_emails?(account)
|
||||||
return true if Docuseal.multitenant?
|
return true if Docuseal.multitenant?
|
||||||
|
return true if ENV['SMTP_ADDRESS'].present?
|
||||||
|
|
||||||
EncryptedConfig.exists?(account_id: account.id, key: EncryptedConfig::EMAIL_SMTP_KEY)
|
EncryptedConfig.exists?(account_id: account.id, key: EncryptedConfig::EMAIL_SMTP_KEY)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user