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 = []