sendmail_md from defs settings
This commit is contained in:
parent
e75409d01b
commit
f8b30ddde2
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue