Compare commits

...

1 Commits

Author SHA1 Message Date
Anand Chitipothu
b70e8b9acc fix: fixed the email message sent out on signup
Currently updated keeping Mon.School in mind.
2021-07-19 13:14:13 +05:30
2 changed files with 10 additions and 8 deletions

View File

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

View File

@@ -1,9 +1,8 @@
<div> <div>
{% set site_link = "<a href='" + site_url + "'>" + site_url + "</a>" %} {% set site_link = "<a href='" + site_url + "'>" + site_name + "</a>" %}
<p>{{_("Dear Community Member,")}}</p> <p>{{_("Dear {0},").format(full_name)}}</p>
<p>{{_("Your Invite Request to be a part of {0} has <p>{{_("Welcome to {0}!").format(site_name)}}</p>
been approved.").format(site_link)}}</p> <p>Click on the link below to complete your sign up and set a new password</p>
<p>Click on the link below to complete your Sign up and set a new password</p>
<p style="margin: 15px 0px;"> <p style="margin: 15px 0px;">
<a href="{{ signup_form_link }}" rel="nofollow" class="btn btn-primary">{{ _("Complete Sign Up") }}</a> <a href="{{ signup_form_link }}" rel="nofollow" class="btn btn-primary">{{ _("Complete Sign Up") }}</a>
</p> </p>
@@ -14,5 +13,5 @@
</p> </p>
<br> <br>
<p>Thanks and Regards,</p> <p>Thanks and Regards,</p>
<p>Your Community.</p> <p>{{site_name}}</p>
</div> </div>