diff --git a/py/webnotes/utils/email_lib/__init__.py b/py/webnotes/utils/email_lib/__init__.py index 6479620475..4189700f10 100644 --- a/py/webnotes/utils/email_lib/__init__.py +++ b/py/webnotes/utils/email_lib/__init__.py @@ -19,10 +19,10 @@ def make_html_body(content, template = None): return template_html % {'content': content} -def sendmail_md(recipients, sender=None, msg=None, subject=None): +def sendmail_md(recipients, sender=None, msg=None, subject=None, from_defs=0): """send markdown email""" import markdown2 - sendmail(recipients, sender, markdown2.markdown(msg), subject, txt=msg) + sendmail(recipients, sender, markdown2.markdown(msg), subject, txt=msg, from_defs) def sendmail(recipients, sender='', msg='', subject='[No Subject]', txt=None, \ parts=[], cc=[], attach=[], send_now=1, reply_to=None, template=None, from_defs=0):