Heroku, Flask, Flask-Mail, Gmail Heroku, Flask, Flask-Mail, Gmail heroku heroku

Heroku, Flask, Flask-Mail, Gmail


The following config is what I used for heroku.

MAIL_SERVER = 'smtp.gmail.com',MAIL_PORT = 587,MAIL_USE_TLS = True,MAIL_USE_SSL = False,MAIL_USERNAME = 'my_username@gmail.com',MAIL_PASSWORD = 'my_password',


I think you need to use a Heroku addon (which, by the way, can be free but will require a credit card).

https://devcenter.heroku.com/articles/smtp