I am getting an error from mail.send and I don't know why
In another file -
def send_email(user, Type):
if Type == 'reset':
token = user.get_reset_token()
msg = Message('Password Reset Request', sender='[email protected]', recipients=[user.email])
msg.body = f'''To reset your password for Gamer Blog click on the following link:
{url_for('reset_token', token=token, _external=True)}
If this was not requested simply ignore it.
'''
mail.send(msg)In another file -
app.config['MAIL_SERVER'] = 'smtp.googlemail.com' app.config['MAIL_PORT'] = 587 app.config['MAIL_USE_TLS'] = True mail = Mail(app)
