From f8b30ddde22487df4e005dac80ea59a09befefb4 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 16 Feb 2012 12:48:23 +0530 Subject: [PATCH] sendmail_md from defs settings --- py/webnotes/utils/email_lib/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):