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 @@
{{_("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
@@ -14,5 +13,5 @@Thanks and Regards,
-Your Community.
-{{site_name}}
+