Envoi mail bulletins: bcc multiple addr.

This commit is contained in:
Emmanuel Viennet 2023-01-19 11:51:57 -03:00
parent 40857f317b
commit 4fd9012133
3 changed files with 4 additions and 4 deletions

View File

@ -1084,7 +1084,7 @@ def mail_bulletin(formsemestre_id, infos, pdfdata, filename, recipient_addr):
recipients = [recipient_addr]
sender = sco_preferences.get_preference("email_from_addr", formsemestre_id)
if copy_addr:
bcc = copy_addr.strip()
bcc = copy_addr.strip().split(",")
else:
bcc = ""
@ -1094,7 +1094,7 @@ def mail_bulletin(formsemestre_id, infos, pdfdata, filename, recipient_addr):
subject,
sender,
recipients,
bcc=[bcc],
bcc=bcc,
text_body=hea,
attachments=[
{"filename": filename, "mimetype": scu.PDF_MIMETYPE, "data": pdfdata}

View File

@ -1565,7 +1565,7 @@ class BasePreferences(object):
"initvalue": "",
"title": "e-mail copie bulletins",
"size": 40,
"explanation": "adresse recevant une copie des bulletins envoyés aux étudiants",
"explanation": "adresse(s) recevant une copie des bulletins envoyés aux étudiants (si plusieurs, les séparer par des virgules)",
"category": "bul_mail",
},
),

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.4.28"
SCOVERSION = "9.4.29"
SCONAME = "ScoDoc"