Fix #391 -- Send email on cancelled order (#540)

Send a notification email to user when
order is cancelled.
This commit is contained in:
Daniel
2017-07-06 17:59:48 +08:00
committed by Raphael Michel
parent 9de9d96e35
commit d444935140
8 changed files with 66 additions and 6 deletions

View File

@@ -558,6 +558,13 @@ class MailSettingsForm(SettingsForm):
help_text=_("Available placeholders: {event}, {url}, {product}, {hours}, {code}"),
validators=[PlaceholderValidator(['{event}', '{url}', '{product}', '{hours}', '{code}'])]
)
mail_text_order_canceled = I18nFormField(
label=_("Text"),
required=False,
widget=I18nTextarea,
help_text=_("Available placeholders: {event}, {code}, {url}"),
validators=[PlaceholderValidator(['{event}', '{code}', '{url}'])]
)
smtp_use_custom = forms.BooleanField(
label=_("Use custom SMTP server"),
help_text=_("All mail related to your event will be sent over the smtp server specified by you."),