fixed welcome emails
This commit is contained in:
parent
3aaab1a39e
commit
bfa3a08576
@ -4,6 +4,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
from frappe.utils import add_days, nowdate, get_fullname
|
from frappe.utils import add_days, nowdate, get_fullname
|
||||||
|
import markdown2
|
||||||
|
|
||||||
def setup_welcome_emails():
|
def setup_welcome_emails():
|
||||||
for email in (
|
for email in (
|
||||||
@ -15,5 +16,5 @@ def setup_welcome_emails():
|
|||||||
|
|
||||||
frappe.sendmail(recipients = frappe.session.user, subject = email["subject"],
|
frappe.sendmail(recipients = frappe.session.user, subject = email["subject"],
|
||||||
sender = "hello@erpnext.com",
|
sender = "hello@erpnext.com",
|
||||||
content=content, as_bulk = True,
|
content=markdown2.markdown(content), as_bulk = True,
|
||||||
send_after= add_days(nowdate(), email["after"]))
|
send_after= add_days(nowdate(), email["after"]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user