Added email

This commit is contained in:
Pranav Nachanekar 2019-09-20 10:41:59 +05:30
parent df1a5a9633
commit fa4a2a53e8

View File

@ -39,7 +39,8 @@ class Appointment(Document):
self.create_calendar_event()
else:
# Send email to confirm
# frappe.sendmail(recipients=[self.email],message='https:/',subject="")
verify_url = ''.join([frappe.utils.get_url(),'/book-appointment/verify?email=',self.email,"&appoitnment=",self.name]))
frappe.sendmail(recipients=[self.email],message=verify_url',self.email,"&appoitnment=",self.name),subject="")
frappe.msgprint("Please check your email to confirm the appointment")
def set_verified(self,email):