Skip to content

Commit

Permalink
Email: use first recipient from email object (#11581)
Browse files Browse the repository at this point in the history
`email.to` returns a list, but our tasks expects a single string
  • Loading branch information
stsewd committed Sep 3, 2024
1 parent 52784c3 commit 2d34a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/core/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def send_email_from_object(email: EmailMultiAlternatives | EmailMessage):
html_content = content
break
send_email_task.delay(
recipient=email.to,
recipient=email.to[0],
subject=email.subject,
content=email.body,
content_html=html_content,
Expand Down

0 comments on commit 2d34a5e

Please sign in to comment.