MailPrefixer: rozdělení podle typu příjemce
This commit is contained in:
parent
9183eab7cf
commit
455b0f59a5
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,11 @@ class PrefixingMailBackend(DjangoSMTPBackend):
|
||||||
|
|
||||||
if message.from_email != settings.SERVER_EMAIL:
|
if message.from_email != settings.SERVER_EMAIL:
|
||||||
message.subject = prefix + ' ' + message.subject
|
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.to = settings.TESTOVACI_EMAILOVA_KONFERENCE
|
||||||
message.cc = []
|
message.cc = []
|
||||||
message.bcc = []
|
message.bcc = []
|
||||||
|
|
Loading…
Reference in a new issue