fix: bcc as list in Message build

This commit is contained in:
Jean-Marie Place 2021-10-26 19:27:51 +02:00
parent 668210aaef
commit 461f14631b
1 changed files with 1 additions and 1 deletions

View File

@ -987,7 +987,7 @@ def mail_bulletin(formsemestre_id, I, pdfdata, filename, recipient_addr):
bcc = copy_addr.strip()
else:
bcc = ""
msg = Message(subject, sender=sender, recipients=recipients, bcc=bcc)
msg = Message(subject, sender=sender, recipients=recipients, bcc=[bcc])
msg.body = hea
# Attach pdf