DEV Community

Discussion on: Flask Rest API -Part:5- Password Reset

Collapse
 
yosefco3 profile image
Yosef Cohen • Edited

I had the same problem.
My mistake was that I defined the email settings in .env file, and i forgot to import that settings to my app file.
And I still got that error, until I declared my :
mail = Mail(app)
after all that imported settings.