diff --git a/app/tasks.py b/app/tasks.py index 9dac234..a5e2a7e 100644 --- a/app/tasks.py +++ b/app/tasks.py @@ -28,7 +28,7 @@ def send_comment_notification(commenter_email, subject, template, template_data) html = template_env.get_template(template).render(data=template_data) sender = settings.EMAIL_NOTIFICATIONS.SENDER subject = settings.EMAIL_NOTIFICATIONS.PREFIX + subject - send_email(sender, recipient=commenter_email, subject=subject, html=html) + send_email(sender, recipients=[commenter_email], subject=subject, html=html) logging.info('{} mail sent to {}'.format(template, commenter_email)) @queue.task(autoretry_for=(Exception,), max_retries=5, default_retry_delay=RETRY_DELAY)