From 35692c0903b5181e7de9d328ee5ae48cffcd519e Mon Sep 17 00:00:00 2001 From: John Mullins Date: Sun, 25 Feb 2024 23:51:47 +1100 Subject: [PATCH] Removing hardcoded BCC email list --- busManager/coord/email_helpers.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/busManager/coord/email_helpers.py b/busManager/coord/email_helpers.py index e5e0e47..3582a50 100644 --- a/busManager/coord/email_helpers.py +++ b/busManager/coord/email_helpers.py @@ -39,9 +39,8 @@ def email_companies_bus_roll(request, query_set=None): subject = "Echuca Schools Bus Roll" message = f"A new bus roll for {company.name} has been generated" email_from = "bus.manager@education.vic.gov.au" - bcc = "nicole.edwards4@education.vic.gov.au" recipient = [company.contact_email] - email = EmailMessage(subject, message, email_from, recipient, bcc=bcc) + email = EmailMessage(subject, message, email_from, recipient) email.attach(f"school_bus_roll_{date.today()}.pdf", pdf.content) email.send(fail_silently=True) @@ -67,9 +66,8 @@ def email_school_roll(request, query_set): subject = "Echuca Schools Bus Roll" message = f"A new bus roll for {school.name} has been generated" email_from = "bus.manager@education.vic.gov.au" - bcc = "nicole.edwards4@education.vic.gov.au" recipient = [school.email] - email = EmailMessage(subject, message, email_from, recipient, bcc=bcc) + email = EmailMessage(subject, message, email_from, recipient) email.attach(f"school_bus_roll_{date.today()}.pdf", pdf.content) email.send(fail_silently=True)