diff --git a/apps/notification/tasks.py b/apps/notification/tasks.py index 759ba298..7b582035 100644 --- a/apps/notification/tasks.py +++ b/apps/notification/tasks.py @@ -258,8 +258,7 @@ def send_course_access_expire_email(days=None): continue print(payment.user.email) try: - #payment.user.email - send_email('Доступ к курсу скоро закончится', 'gzbender74@gmail.com', 'notification/email/course_access_expire.html', + send_email('Доступ к курсу скоро закончится', payment.user.email, 'notification/email/course_access_expire.html', username=payment.user.get_full_name(), course_title=payment.course.title, access_duration=payment.access_duration) except: