diff --git a/app/utils/send_mail.py b/app/utils/send_mail.py index 2044491..52570a8 100644 --- a/app/utils/send_mail.py +++ b/app/utils/send_mail.py @@ -19,7 +19,7 @@ def send_reset_password_mail(name, email): body = render_template('email/reset_password.md', reset_url=reset_url, name=name) if V5Config.SEND_MAILS: - send_mail(member.email, subject, html=html, body=body) + send_mail(email, subject, html=html, body=body) else: print(f"Reset password url: {reset_url}") @@ -34,6 +34,6 @@ def send_validation_mail(name, email): body = render_template('email/activate.md', confirm_url=confirm_url, name=name) if V5Config.SEND_MAILS: - send_mail(member.email, subject, html=html, body=body) + send_mail(email, subject, html=html, body=body) else: print(f"Email confirmation url: {confirm_url}")