Make cc REALLY work
This commit is contained in:
parent
821335d719
commit
4d1596c4a2
|
@ -84,7 +84,10 @@ class Notifier(object):
|
||||||
|
|
||||||
email = message.as_string()
|
email = message.as_string()
|
||||||
|
|
||||||
self.send(to, email)
|
rcpt = to
|
||||||
|
rcpt.extend(cc)
|
||||||
|
|
||||||
|
self.send(rcpt, email)
|
||||||
|
|
||||||
@retry_and_log(logger, RETRIES)
|
@retry_and_log(logger, RETRIES)
|
||||||
def send_no_data(self, to: T.List[T.Text], cc: T.List[T.Text]) -> None:
|
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"))
|
message.attach(MIMEText(body, "plain"))
|
||||||
email = message.as_string()
|
email = message.as_string()
|
||||||
|
|
||||||
self.send(to, email)
|
rcpt = to
|
||||||
|
rcpt.extend(cc)
|
||||||
|
|
||||||
|
self.send(rcpt, email)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user