How to Solve NameError: name 'Message' is not defined -- flask_mail
Solution: Import the 'Message' module
To Solve the error, add the following line to the top of your code.
from flask_mail import Message
For more information:
Python flask_mail Message