add Sender: header to outgoing emails

for now contains the same address as From:
some mail servers seem to require having a Sender: header
as part of their spam detection rules
pull/60/head
Hartmut Holzgraefe 2020-10-08 12:48:41 +02:00
rodzic 611aa90f89
commit 5965b5aeb0
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -55,6 +55,7 @@ RESULT_TIMEOUT_REACHED = 4
THUMBNAIL_SUFFIX = '_small.png'
EXCEPTION_EMAIL_TEMPLATE = """From: MapOSMatic rendering daemon <%(from)s>
Sender: <%(from)s>
Reply-To: %(replyto)s
To: %(to)s
Content-Type: text/plain; charset=utf-8
@ -76,6 +77,7 @@ MapOSMatic
"""
SUCCESS_EMAIL_TEMPLATE = """From: MapOSMatic rendering daemon <%(from)s>
Sender: <%(from)s>
Reply-To: %(replyto)s
To: %(to)s
Content-Type: text/plain; charset=utf-8
@ -99,6 +101,7 @@ MapOSMatic"""
FAILURE_EMAIL_TEMPLATE = """From: MapOSMatic rendering daemon <%(from)s>
Sender: <%(from)s>
Reply-To: %(replyto)s
To: %(to)s
Content-Type: text/plain; charset=utf-8
@ -123,6 +126,7 @@ MapOSMatic"""
TIMEOUT_EMAIL_TEMPLATE = """From: MapOSMatic rendering daemon <%(from)s>
Sender: <%(from)s>
Reply-To: %(replyto)s
To: $(to)s
Content-Type: text/plain; charset=utf-8