fix: fixed the email message sent out on signup

Currently updated keeping Mon.School in mind.
This commit is contained in:
Anand Chitipothu
2021-07-19 13:14:13 +05:30
parent 37820c1e19
commit b70e8b9acc
2 changed files with 10 additions and 8 deletions

View File

@@ -30,10 +30,13 @@ class InviteRequest(Document):
return user
def send_email(self):
subject = _("Your request has been approved.")
site_name = "Mon.School"
subject = _("Welcome to {0}!").format(site_name)
args = {
"full_name": self.full_name,
"signup_form_link": "/new-sign-up?invite_code={0}".format(self.name),
"site_name": site_name,
"site_url": frappe.utils.get_url()
}
frappe.sendmail(