Do not override the Reply-To header (#597)

This commit is contained in:
Tobias Kunze
2017-08-20 12:50:48 +02:00
committed by Raphael Michel
parent 2bf4e6c5c6
commit bab092f04b

View File

@@ -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')