def send_reset_email(user):
    token = user.get_reset_token()
    msg = Message('Password Reset Request', sender='example@example.com', recipients=['example@example.com'])
    msg.body = f'''To reset your password, visit the following link:
    {url_for('reset_token', token=token, _external=True)}
    If you did not make this request then simply ignore this email and no changes will be made.
    '''
    mail.send(msg)
def send_reset_email(user):
    token = user.get_reset_token()
    msg = Message('Password Reset Request', sender='example@example.com', recipients=['example@example.com'])
    msg.body = f'To reset your password, visit the following link:
    {url_for('reset_token', token=token, _external=True)}
    If you did not make this request then simply ignore this email and no changes will be made.
    '
    mail.send(msg)