email as variable at send
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user