[fix] for muted emails

This commit is contained in:
Rushabh Mehta 2016-11-17 16:55:43 +05:30
parent 43c6c47513
commit 5bfc3f2a2e

View file

@ -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