From 726a9552681e7c15523c0ad0c51df3c313bb0281 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 22 Dec 2024 06:59:23 -0500 Subject: [PATCH] email as variable at send --- services/web/project/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 728a664..14c07bd 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -242,7 +242,7 @@ def start_register(): last_row_id=cursor.lastrowid print(last_row_id) - send_register_mail() + send_register_mail(email) return jsonify(hello="ameye signup path world", last_row_id=last_row_id) except Exception as e: @@ -252,11 +252,11 @@ def start_register(): "data": None }, 500 -def send_register_mail(): +def send_register_mail(signup_email): msg = Message( 'verify your MERMS Account', sender ='message@chiefsoft.com', - recipients = ['ses66181@gmail.com'] + recipients = [signup_email,'ameye+merscopy@chiefsoft.com'] ) msg.body = 'Hello MERMS message sent for account verification http://localhost:8090/completesignup/JWT-djhgdhjgdhdggggd' mail.send(msg)