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)