From d081a8d6fa4b749796e82b00695389c08204dbb5 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 8 Jul 2025 21:03:09 -0400 Subject: [PATCH] email initials --- app.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app.py b/app.py index f61366d..abf0488 100644 --- a/app.py +++ b/app.py @@ -1,6 +1,20 @@ from app import create_app +from flask_mail import Mail, Message +from app.config import Config app = create_app() if __name__ == "__main__": app.run(host="0.0.0.0", port=5000, debug=True) + + mail = Mail(app) # instantiate the mail class + + # configuration of mail + app.config['MAIL_SERVER'] = 'smtp.gmail.com' + app.config['MAIL_PORT'] = 465 + # app.config['MAIL_PORT'] = 587 + app.config['MAIL_USERNAME'] = 'message@chiefsoft.com' + app.config['MAIL_PASSWORD'] = 'may12002!' + app.config['MAIL_USE_TLS'] = False + app.config['MAIL_USE_SSL'] = True + mail = Mail(app)