Skip to content

Commit

Permalink
apphelpers updated for handling multiple recipients for mail (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: Anjali Pardeshi <[email protected]>
  • Loading branch information
anjali-92 and Anjali Pardeshi authored Oct 6, 2020
1 parent e85366e commit 27e8261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27e8261

Please sign in to comment.