diff --git a/services/web/email/verify.html b/services/web/email/verify.html new file mode 100644 index 0000000..2139f2f --- /dev/null +++ b/services/web/email/verify.html @@ -0,0 +1,2 @@ +Hello MERMS message sent for account verification +https://works.mermsemr.com/csignup/JWT-djhgdhjgdhdggggd diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 6ed44ff..b30a196 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -103,13 +103,14 @@ engine = create_engine(dataUrl) @app.route("/") def hello_world(): - msg = Message( - 'Hello', - sender ='message@chiefsoft.com', - recipients = ['ses66181@gmail.com'] - ) - msg.body = 'Hello Flask message sent from Flask-Mail' - mail.send(msg) + send_register_mail('ameye@chiefsoft.com') +# msg = Message( +# 'Hello', +# sender ='message@chiefsoft.com', +# recipients = ['ses66181@gmail.com'] +# ) +# msg.body = 'Hello Flask message sent from Flask-Mail' +# mail.send(msg) return jsonify(action_data="sent") @@ -264,9 +265,15 @@ def send_register_mail(signup_email): sender ='message@chiefsoft.com', recipients = [signup_email,'ameye+merscopy@chiefsoft.com'] ) - msg.body = """Hello MERMS message sent for account verification - https://works.mermsemr.com/csignup/JWT-djhgdhjgdhdggggd + msg.body = """Hello Firstname, + 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) @app.route("/panel/auth/reset", methods=["POST"])