21 lines
599 B
Python
21 lines
599 B
Python
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)
|