Skip to content

Commit 2d34a5e

Browse files
authored
Email: use first recipient from email object (#11581)
`email.to` returns a list, but our tasks expects a single string
1 parent 52784c3 commit 2d34a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/core/utils/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def send_email_from_object(email: EmailMultiAlternatives | EmailMessage):
286286
html_content = content
287287
break
288288
send_email_task.delay(
289-
recipient=email.to,
289+
recipient=email.to[0],
290290
subject=email.subject,
291291
content=email.body,
292292
content_html=html_content,

0 commit comments

Comments
 (0)