how to config your flask for gmail

Solutions on MaxInterview for how to config your flask for gmail by the best coders in the world

showing results for - "how to config your flask for gmail"
Sara
15 Aug 2020
1app.config['MAIL_SERVER'] = 'smtp.googlemail.com'
2app.config['MAIL_PORT'] = 587
3app.config['MAIL_USE_TLS'] = True
4app.config['MAIL_USERNAME'] = 'infooveriq@gmail.com'  # enter your email here
5app.config['MAIL_DEFAULT_SENDER'] = 'infooveriq@gmail.com' # enter your email here
6app.config['MAIL_PASSWORD'] = 'password' # enter your password here
7
8mail = Mail(app)
9#...
10