From b70e8b9acc9c03dafb5aa6675db7ccfa96c7c1bf Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Mon, 19 Jul 2021 13:14:13 +0530 Subject: [PATCH] fix: fixed the email message sent out on signup Currently updated keeping Mon.School in mind. --- .../lms/doctype/invite_request/invite_request.py | 5 ++++- .../emails/lms_invite_request_approved.html | 13 ++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/community/lms/doctype/invite_request/invite_request.py b/community/lms/doctype/invite_request/invite_request.py index 325f2611..e8908e19 100644 --- a/community/lms/doctype/invite_request/invite_request.py +++ b/community/lms/doctype/invite_request/invite_request.py @@ -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( diff --git a/community/templates/emails/lms_invite_request_approved.html b/community/templates/emails/lms_invite_request_approved.html index 0b454f91..e4b43270 100644 --- a/community/templates/emails/lms_invite_request_approved.html +++ b/community/templates/emails/lms_invite_request_approved.html @@ -1,9 +1,8 @@
- {% set site_link = "" + site_url + "" %} -

{{_("Dear Community Member,")}}

-

{{_("Your Invite Request to be a part of {0} has - been approved.").format(site_link)}}

-

Click on the link below to complete your Sign up and set a new password

+ {% set site_link = "" + site_name + "" %} +

{{_("Dear {0},").format(full_name)}}

+

{{_("Welcome to {0}!").format(site_name)}}

+

Click on the link below to complete your sign up and set a new password

{{ _("Complete Sign Up") }}

@@ -14,5 +13,5 @@


Thanks and Regards,

-

Your Community.

-
\ No newline at end of file +

{{site_name}}

+