mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Make all email subjects configurable (#2884)
Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
@@ -311,7 +311,7 @@ class ResetPasswordView(FormView):
|
||||
'presale:organizer.customer.recoverpw') + '?id=' + customer.identifier + '&token=' + token
|
||||
mail(
|
||||
customer.email,
|
||||
_('Set a new password for your account at {organizer}').format(organizer=self.request.organizer.name),
|
||||
self.request.organizer.settings.mail_subject_customer_reset,
|
||||
self.request.organizer.settings.mail_text_customer_reset,
|
||||
ctx,
|
||||
locale=customer.locale,
|
||||
@@ -504,7 +504,7 @@ class ChangeInformationView(CustomerRequiredMixin, FormView):
|
||||
}, salt='pretix.presale.views.customer.ChangeInformationView')
|
||||
mail(
|
||||
new_email,
|
||||
_('Confirm email address for your account at {organizer}').format(organizer=self.request.organizer.name),
|
||||
self.request.organizer.settings.mail_subject_customer_email_change,
|
||||
self.request.organizer.settings.mail_text_customer_email_change,
|
||||
ctx,
|
||||
locale=form.instance.locale,
|
||||
|
||||
@@ -80,7 +80,7 @@ class ResendLinkView(EventViewMixin, TemplateView):
|
||||
if not orders:
|
||||
user = INVALID_ADDRESS
|
||||
|
||||
subject = _('Your orders for {}').format(self.request.event)
|
||||
subject = self.request.event.settings.mail_subject_resend_all_links
|
||||
template = self.request.event.settings.mail_text_resend_all_links
|
||||
context = get_email_context(event=self.request.event, orders=orders)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user