email as variable at send

This commit is contained in:
CHIEFSOFT\ameye
2024-12-22 06:59:23 -05:00
parent afc352274b
commit 726a955268
+3 -3
View File
@@ -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)