mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Do not override the Reply-To header (#597)
This commit is contained in:
committed by
Raphael Michel
parent
2bf4e6c5c6
commit
bab092f04b
@@ -98,7 +98,7 @@ def mail(email: str, subject: str, template: Union[str, LazyI18nString],
|
||||
htmlctx['event'] = event
|
||||
htmlctx['color'] = event.settings.primary_color
|
||||
|
||||
if event.settings.mail_from == settings.DEFAULT_FROM_EMAIL and event.settings.contact_mail:
|
||||
if event.settings.mail_from == settings.DEFAULT_FROM_EMAIL and event.settings.contact_mail and not headers.get('Reply-To'):
|
||||
headers['Reply-To'] = event.settings.contact_mail
|
||||
|
||||
prefix = event.settings.get('mail_prefix')
|
||||
|
||||
Reference in New Issue
Block a user