<filename>mail_config.py
from app import application
from flask_mail import Mail, Message

mail = Mail(application)

application.config['MAIL_SERVER'] = 'smtp.gmail.com'
application.config['MAIL_PORT'] = 465
# Type in your gmail account in here. This is the account that will send out and receive the emails.
application.config['MAIL_USERNAME'] = '<EMAIL>'
# Type in your gmail password in here
application.config['MAIL_PASSWORD'] = '<PASSWORD>'
application.config['MAIL_USE_TLS'] = False
application.config['MAIL_USE_SSL'] = True

mail = Mail(application)

<filename>mail_config.py
from app import application
from flask_mail import Mail, Message

mail = Mail(application)

application.config['MAIL_SERVER'] = 'smtp.gmail.com'
application.config['MAIL_PORT'] = 465
# Type in your gmail account in here. This is the account that will send out and receive the emails.
application.config['MAIL_USERNAME'] = '<EMAIL>'
# Type in your gmail password in here
application.config['MAIL_PASSWORD'] = '<PASSWORD>'
application.config['MAIL_USE_TLS'] = False
application.config['MAIL_USE_SSL'] = True

mail = Mail(application)

# Type in your gmail account in here. This is the account that will send out and receive the emails. # Type in your gmail password in here