[fix] for muted emails
This commit is contained in:
parent
43c6c47513
commit
5bfc3f2a2e
1 changed files with 4 additions and 0 deletions
|
|
@ -292,6 +292,10 @@ def make_cache_queue():
|
|||
|
||||
def send_one(email, smtpserver=None, auto_commit=True, now=False):
|
||||
'''Send Email Queue with given smtpserver'''
|
||||
if frappe.are_emails_muted():
|
||||
frappe.msgprint(_("Emails are muted"))
|
||||
return
|
||||
|
||||
|
||||
email = frappe.db.sql('''select name, status, communication,
|
||||
message, sender, recipient, reference_doctype
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue