mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
if recipients only then try to send email digest
This commit is contained in:
@@ -56,6 +56,7 @@ class DocType:
|
|||||||
recipients = filter(lambda r: r in valid_users,
|
recipients = filter(lambda r: r in valid_users,
|
||||||
self.doc.recipient_list.split("\n"))
|
self.doc.recipient_list.split("\n"))
|
||||||
|
|
||||||
|
if recipients:
|
||||||
from webnotes.utils.email_lib import sendmail
|
from webnotes.utils.email_lib import sendmail
|
||||||
sendmail(recipients=recipients, subject=(self.doc.frequency + " Digest"),
|
sendmail(recipients=recipients, subject=(self.doc.frequency + " Digest"),
|
||||||
sender="ERPNext Notifications <notifications+email_digest@erpnext.com>",
|
sender="ERPNext Notifications <notifications+email_digest@erpnext.com>",
|
||||||
|
|||||||
Reference in New Issue
Block a user