mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 14:38:26 +00:00
if recipients only then try to send email digest
This commit is contained in:
@@ -56,10 +56,11 @@ 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"))
|
||||||
|
|
||||||
from webnotes.utils.email_lib import sendmail
|
if recipients:
|
||||||
sendmail(recipients=recipients, subject=(self.doc.frequency + " Digest"),
|
from webnotes.utils.email_lib import sendmail
|
||||||
sender="ERPNext Notifications <notifications+email_digest@erpnext.com>",
|
sendmail(recipients=recipients, subject=(self.doc.frequency + " Digest"),
|
||||||
msg=self.get_digest_msg())
|
sender="ERPNext Notifications <notifications+email_digest@erpnext.com>",
|
||||||
|
msg=self.get_digest_msg())
|
||||||
|
|
||||||
def get_digest_msg(self):
|
def get_digest_msg(self):
|
||||||
""""""
|
""""""
|
||||||
|
|||||||
Reference in New Issue
Block a user