diff --git a/backend/utils/email_sender.py b/backend/utils/email_sender.py index bf7ecbb..f95043b 100644 --- a/backend/utils/email_sender.py +++ b/backend/utils/email_sender.py @@ -148,8 +148,8 @@ def send_reset_password_email(to_email: str, token: str) -> None: return Mail(current_app).send(msg) print(f"[EMAIL to {to_email}] Reset password: {reset_url}") - except Exception: - print(f"Failed to send email to {to_email}. Reset link: {reset_url}") + except Exception as e: + print(f"Failed to send email to {to_email}. Reset link: {reset_url}. exception: {e}") def send_pin_setup_email(to_email: str, code: str) -> None: