Skip to content

Commit

Permalink
Add X-Mailer header on outgoing emails
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Jan 22, 2024
1 parent a677575 commit aad94f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pretix/base/services/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit aad94f1

Please sign in to comment.