prettify confirmation email
This commit is contained in:
parent
54f33f4e5d
commit
97f6576213
@ -43,10 +43,17 @@ class Appointment(Document):
|
||||
self.status = 'Unverified'
|
||||
# Send email to confirm
|
||||
verify_url = self._get_verify_url()
|
||||
template = 'confirm_appointment'
|
||||
args = {
|
||||
"link":verify_url,
|
||||
"site_url":frappe.utils.get_url(),
|
||||
"full_name":self.customer_name,
|
||||
}
|
||||
message = ''.join(
|
||||
['Please click the following link to confirm your appointment:', verify_url])
|
||||
frappe.sendmail(recipients=[self.customer_email],
|
||||
message=message,
|
||||
template=template,
|
||||
args=args,
|
||||
subject=_('Appointment Confirmation'))
|
||||
frappe.msgprint(
|
||||
'Please check your email to confirm the appointment')
|
||||
|
10
erpnext/templates/emails/confirm_appointment.html
Normal file
10
erpnext/templates/emails/confirm_appointment.html
Normal file
@ -0,0 +1,10 @@
|
||||
<p>{{_("Dear")}} {{ full_name }}{% if last_name %} {{ last_name}}{% endif %},</p>
|
||||
<p>{{_("A new appointment has been created for you with {0}").format(site_url)}}.</p>
|
||||
<p>{{_("Click on the link below to verify your email and confirm the appointment")}}.</p>
|
||||
|
||||
<p style="margin: 30px 0px;">
|
||||
<a href="{{ link }}" rel="nofollow" style="padding: 8px 20px; background-color: #7575ff; color: #fff; border-radius: 4px; text-decoration: none; line-height: 1; border-bottom: 3px solid rgba(0, 0, 0, 0.2); font-size: 14px; font-weight: 200;">{{ _("Verify Email") }}</a>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<p style="font-size: 85%;">{{_("You can also copy-paste this link in your browser")}} <a href="{{ link }}">{{ link }}</a></p>
|
Loading…
x
Reference in New Issue
Block a user