Add X-Mailer header on outgoing emails

This commit is contained in:
Raphael Michel
2024-01-22 13:37:49 +01:00
parent a677575eef
commit aad94f1b2a

View File

@@ -183,6 +183,7 @@ def mail(email: Union[str, Sequence[str]], subject: str, template: Union[str, La
if auto_email:
headers['X-Auto-Response-Suppress'] = 'OOF, NRN, AutoReply, RN'
headers['Auto-Submitted'] = 'auto-generated'
headers.setdefault('X-Mailer', 'pretix')
with language(locale):
if isinstance(context, dict) and event: