Merge pull request 'fix: bcc as list in Message build' (#176) from jmplace/ScoDoc-Lille:fix_bcc into master

Reviewed-on: https://scodoc.org/git/viennet/ScoDoc/pulls/176
This commit is contained in:
Emmanuel Viennet 2021-10-26 22:27:29 +02:00
commit db937ca7c5

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