Verify email

This commit is contained in:
CHIEFSOFT\ameye
2024-12-26 11:59:01 -05:00
parent 1c1d05215f
commit e06a7ee718
2 changed files with 18 additions and 9 deletions
+2
View File
@@ -0,0 +1,2 @@
Hello MERMS message sent for account verification
<a href='https://works.mermsemr.com/csignup/JWT-djhgdhjgdhdggggd'>https://works.mermsemr.com/csignup/JWT-djhgdhjgdhdggggd</a>
+16 -9
View File
@@ -103,13 +103,14 @@ engine = create_engine(dataUrl)
@app.route("/") @app.route("/")
def hello_world(): def hello_world():
msg = Message( send_register_mail('ameye@chiefsoft.com')
'Hello', # msg = Message(
sender ='message@chiefsoft.com', # 'Hello',
recipients = ['ses66181@gmail.com'] # sender ='message@chiefsoft.com',
) # recipients = ['ses66181@gmail.com']
msg.body = 'Hello Flask message sent from Flask-Mail' # )
mail.send(msg) # msg.body = 'Hello Flask message sent from Flask-Mail'
# mail.send(msg)
return jsonify(action_data="sent") return jsonify(action_data="sent")
@@ -264,9 +265,15 @@ def send_register_mail(signup_email):
sender ='message@chiefsoft.com', sender ='message@chiefsoft.com',
recipients = [signup_email,'ameye+merscopy@chiefsoft.com'] recipients = [signup_email,'ameye+merscopy@chiefsoft.com']
) )
msg.body = """Hello MERMS message sent for account verification msg.body = """Hello Firstname,
<a href='https://works.mermsemr.com/csignup/JWT-djhgdhjgdhdggggd'>https://works.mermsemr.com/csignup/JWT-djhgdhjgdhdggggd</a> You recived this message for account verification
Follow the link: https://works.mermsemr.com/csignup/JWT-djhgdhjgdhdggggd
For any Support
Reach Out
""" """
mail.send(msg) mail.send(msg)
@app.route("/panel/auth/reset", methods=["POST"]) @app.route("/panel/auth/reset", methods=["POST"])