Compare commits

..

2 commits

Author SHA1 Message Date
Benjamin Renard
845af9c367
Email: add support for CC & BCC recipients 2023-03-14 17:00:31 +01:00
Benjamin Renard
c93b3508ed
Email: add possibility to specify more than one recipient 2023-03-14 16:55:36 +01:00

View file

@ -330,9 +330,8 @@ 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 list(catch_addr)
recipients = catch_addr if isinstance(catch_addr, list) else [catch_addr]
else:
if cc:
recipients.extend(