diff --git a/app/api/services/base_service.py b/app/api/services/base_service.py index ad39da7..78a41b7 100644 --- a/app/api/services/base_service.py +++ b/app/api/services/base_service.py @@ -46,6 +46,40 @@ class BaseService: support@mermsemr.com """ + html_body = f"""\ + + + + + + + + + + + + + + + + + +
+ +
+ Hello {firstname}! +
+ Password Reset Completed
+
+ For any support
+ Reach Out
+ support@mermsemr.com
+ https://www.mermsemr.com/ +
+ + + """ + sender_email = BaseService.SEND_EMAIL_FROM sender_password = BaseService.SEND_EMAIL_PASS receiver_email = signup_email @@ -56,7 +90,7 @@ class BaseService: msg['Subject'] = subject msg['From'] = sender_email msg['To'] = receiver_email - msg.attach(MIMEText(body, 'plain')) # or 'html' for HTML content + msg.attach(MIMEText(html_body, 'html')) # or 'html' for HTML content try: # For Gmail, use 'smtp.gmail.com' and port 587 (TLS) or 465 (SSL)