From 4888d58112b96762d5e5d1761ff4060e68163223 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 5 Sep 2025 21:30:09 -0400 Subject: [PATCH] fix email --- app/api/services/base_service.py | 36 +++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) 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)