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)