Vyjmout chybové hlášky.
This commit is contained in:
parent
06c9dea6b5
commit
3d61cf7907
1 changed files with 7 additions and 5 deletions
|
@ -13,9 +13,11 @@ class PrefixingMailBackend(DjangoSMTPBackend):
|
||||||
prefix = '[Mail z testwebu]'
|
prefix = '[Mail z testwebu]'
|
||||||
for message in messages:
|
for message in messages:
|
||||||
# We hope that this is a django.core.mail.message.EmailMessage
|
# We hope that this is a django.core.mail.message.EmailMessage
|
||||||
message.subject = prefix + ' ' + message.subject
|
|
||||||
message.body = "Bylo by posláno na e-maily: " + str(message.recipients()) + "\n\n" + message.body
|
if len(message.from_email) == 0 or message.from_email[0] != settings.SERVER_EMAIL:
|
||||||
message.to = settings.TESTOVACI_EMAILOVA_KONFERENCE
|
message.subject = prefix + ' ' + message.subject
|
||||||
message.cc = []
|
message.body = "Bylo by posláno na e-maily: " + str(message.recipients()) + "\n\n" + message.body
|
||||||
message.bcc = []
|
message.to = settings.TESTOVACI_EMAILOVA_KONFERENCE
|
||||||
|
message.cc = []
|
||||||
|
message.bcc = []
|
||||||
return super().send_messages(messages)
|
return super().send_messages(messages)
|
||||||
|
|
Loading…
Reference in a new issue