From 4d1596c4a21341f02b9e8d931de4a113ec88d3b5 Mon Sep 17 00:00:00 2001 From: Blallo Date: Tue, 27 Sep 2022 23:15:50 +0200 Subject: [PATCH] Make cc REALLY work --- latecomers/notifier.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/latecomers/notifier.py b/latecomers/notifier.py index d72f6eb..417ac11 100644 --- a/latecomers/notifier.py +++ b/latecomers/notifier.py @@ -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)