Compare commits

..

2 commits

Author SHA1 Message Date
Benjamin Renard
39555d41f9
Email: add support for CC & BCC recipients 2023-03-14 16:36:26 +01:00
Benjamin Renard
f393f1b522
Email: add possibility to specify more than one recipient 2023-03-14 16:09:07 +01:00

View file

@ -330,8 +330,9 @@ class EmailClient(
", ".join(cc) if isinstance(cc, list) else cc,
", ".join(bcc) if isinstance(cc, list) else bcc,
catch_addr,
cc,
)
recipients = catch_addr if isinstance(catch_addr, list) else [catch_addr]
recipients = catch_addr if isinstance(catch_addr, list) else list(catch_addr)
else:
if cc:
recipients.extend(