Make cc REALLY work

This commit is contained in:
sfigato 2022-09-27 23:15:50 +02:00
parent 821335d719
commit 4d1596c4a2
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -84,7 +84,10 @@ class Notifier(object):
email = message.as_string()
self.send(to, email)
rcpt = to
rcpt.extend(cc)
self.send(rcpt, email)
@retry_and_log(logger, RETRIES)
def send_no_data(self, to: T.List[T.Text], cc: T.List[T.Text]) -> None:
@ -107,4 +110,7 @@ il vostro tecnico preferito.
message.attach(MIMEText(body, "plain"))
email = message.as_string()
self.send(to, email)
rcpt = to
rcpt.extend(cc)
self.send(rcpt, email)