mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Add X-Mailer header on outgoing emails
This commit is contained in:
@@ -183,6 +183,7 @@ def mail(email: Union[str, Sequence[str]], subject: str, template: Union[str, La
|
|||||||
if auto_email:
|
if auto_email:
|
||||||
headers['X-Auto-Response-Suppress'] = 'OOF, NRN, AutoReply, RN'
|
headers['X-Auto-Response-Suppress'] = 'OOF, NRN, AutoReply, RN'
|
||||||
headers['Auto-Submitted'] = 'auto-generated'
|
headers['Auto-Submitted'] = 'auto-generated'
|
||||||
|
headers.setdefault('X-Mailer', 'pretix')
|
||||||
|
|
||||||
with language(locale):
|
with language(locale):
|
||||||
if isinstance(context, dict) and event:
|
if isinstance(context, dict) and event:
|
||||||
|
|||||||
Reference in New Issue
Block a user