Skip to content

Commit

Permalink
send emails when configured smtp configured from env
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBTurchyn committed Aug 11, 2023
1 parent c57148e commit 6871a3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/accounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def load_signing_certs(account)

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
Expand Down

0 comments on commit 6871a3f

Please sign in to comment.