Zum Hauptinhalt springen

Templates

The emails are generated from templates. For each kind of email, there exists one html template and one plaintext template. These templates can be replaced during runtime, before starting the SMTP mailer.

Configuration

The section in the configuration file is called templates.

FieldTypeRequiredDefault valueDescription
registered_invitestringnoSee belowThe template path setting for invites to registered users
unregistered_invitestringnoSee belowThe template path setting for invites to unregistered users
external_invitestringnoSee belowThe template path setting for invites to external users
registered_event_updatestringnoSee belowThe template path setting for event updates to registered users
unregistered_event_updatestringnoSee belowThe template path setting for event updates to unregistered users
external_event_updatestringnoSee belowThe template path setting for event updates to external users
registered_event_cancellationstringnoSee belowThe template path setting for event cancellations to registered users
unregistered_event_cancellationstringnoSee belowThe template path setting for event cancellations to unregistered users
external_event_cancellationstringnoSee belowThe template path setting for event cancellations to external users
registered_uninvitestringnoSee belowThe template path setting for uninvites to registered users
unregistered_uninvitestringnoSee belowThe template path setting for uninvites to unregistered users
external_uninvitestringnoSee belowThe template path setting for uninvites to external users

To specify the templates, their set of paths must be provided in a certain format. The default template path settings accord with this pattern:

  • "{html = "resources/templates/{field}.html", txt = "resources/templates/{field}.txt"}"

Example

[templates]
registered_invite = "{html = "resources/templates/registered_invite.html", txt = "resources/templates/registered_invite.txt"}"
unregistered_invite = "{html = "resources/templates/unregistered_invite.html", txt = "resources/templates/unregistered_invite.txt"}"
external_invite = "{html = "resources/templates/external_invite.html", txt = "resources/templates/external_invite.txt"}"
<more lines>