email initials

This commit is contained in:
CHIEFSOFT\ameye
2025-07-08 21:03:09 -04:00
parent 0c52bb5981
commit d081a8d6fa
+14
View File
@@ -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)