diff --git a/api/auth_api.py b/api/auth_api.py index 8bd3283..9af136e 100644 --- a/api/auth_api.py +++ b/api/auth_api.py @@ -25,20 +25,22 @@ RESET_PASSWORD_TOKEN_EXPIRY_MINUTES = 10 def send_verification_email(to_email, token): verify_url = f"{current_app.config['FRONTEND_URL']}/auth/verify?token={token}" + html_body = f'Click here to verify your account.' msg = Message( subject="Verify your account", recipients=[to_email], - body=f"Click to verify your account: {verify_url}", + html=html_body, sender=current_app.config['MAIL_DEFAULT_SENDER'] ) mail.send(msg) def send_reset_password_email(to_email, token): reset_url = f"{current_app.config['FRONTEND_URL']}/auth/reset-password?token={token}" + html_body = f'Click here to reset your password.' msg = Message( subject="Reset your password", recipients=[to_email], - body=f"Click to reset your password: {reset_url}", + html=html_body, sender=current_app.config['MAIL_DEFAULT_SENDER'] ) mail.send(msg)