Merge pull request #1147 from pdvyas/fix-bulk-limit-check
[fix] Check bulk limit if email_account from site_config.json
This commit is contained in:
commit
b9bbc367c6
1 changed files with 2 additions and 1 deletions
|
|
@ -112,7 +112,8 @@ def check_bulk_limit(recipients):
|
|||
|
||||
# No limit for own email settings
|
||||
smtp_server = SMTPServer()
|
||||
if smtp_server.email_account and not getattr(smtp_server.email_account,
|
||||
|
||||
if smtp_server.email_account and getattr(smtp_server.email_account,
|
||||
"from_site_config", False) or frappe.flags.in_test:
|
||||
monthly_bulk_mail_limit = frappe.conf.get('monthly_bulk_mail_limit') or 500
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue