From 455b0f59a50779f5cc74b849e4db538308a3ab39 Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Sun, 5 Sep 2021 15:19:23 +0200 Subject: [PATCH] =?UTF-8?q?MailPrefixer:=20rozd=C4=9Blen=C3=AD=20podle=20t?= =?UTF-8?q?ypu=20p=C5=99=C3=ADjemce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- various/mail_prefixer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/various/mail_prefixer.py b/various/mail_prefixer.py index 05d523e7..14d4386b 100644 --- a/various/mail_prefixer.py +++ b/various/mail_prefixer.py @@ -16,7 +16,11 @@ class PrefixingMailBackend(DjangoSMTPBackend): if message.from_email != settings.SERVER_EMAIL: message.subject = prefix + ' ' + message.subject - message.body = "Bylo by posláno na e-maily: " + str(message.recipients()) + "\n\n" + message.body + message.body = f"""Bylo by posláno na e-maily: + To: {message.to} + Cc: {message.cc} + Bcc: {message.bcc} +"""+ "\n\n" + message.body message.to = settings.TESTOVACI_EMAILOVA_KONFERENCE message.cc = [] message.bcc = []