argument name fix in sendmail

This commit is contained in:
Nabin Hait
2015-03-03 14:51:34 +05:30
parent fcda00f317
commit 56c6a65a22
4 changed files with 5 additions and 4 deletions

View File

@@ -75,4 +75,4 @@ def send_email(success, service_name, error_status=None):
frappe.connect()
recipients = frappe.db.get_value("Backup Manager", None, "send_notifications_to").split(",")
frappe.sendmail(recipients=recipients, subject=subject, msg=message)
frappe.sendmail(recipients=recipients, subject=subject, message=message)

View File

@@ -86,7 +86,7 @@ class EmailDigest(Document):
frappe.sendmail(recipients=user_id,
subject="[ERPNext] [{frequency} Digest] {name}".format(
frequency=self.frequency, name=self.name),
msg=msg_for_this_receipient, bulk=True)
message=msg_for_this_receipient, bulk=True)
def get_digest_msg(self):
return self.get_msg_html(self.get_user_specific_content(frappe.session.user) + \