From 1292791113012297268bde4b743f0f1e4d6bd986 Mon Sep 17 00:00:00 2001 From: Darks Date: Tue, 21 Jul 2020 22:37:31 +0200 Subject: [PATCH] utils: fix send_mail >_< --- app/utils/send_mail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}")