Email templates
Email templates contain the recipient, subject and text of an email for the workflow action Send Email (E-Mail senden). The text is HTML with placeholders that X-Sitter fills from the order. A workflow only chooses the template. Typical examples are shipping confirmations to end customers or internal notifications.
Templates with the email type Shipping confirmation to the customer (Versandbestätigung an den Kunden) are also used by the shipping notice (Versandmitteilung) of a client: there you assign them per delivery country, and the recipient gets exactly one email when the order is shipped – without any workflow. See Clients.
The emails X-Sitter sends by itself – login details, password reset – are adapted under System email templates.
Before you start
- Your user needs the permissions for Settings (Einstellungen) and Email Templates (E-Mail-Vorlagen) in the WMS menu. Opening the form and deleting templates are separate permissions – ask your administrator.
- The client the template is for – see Clients. If it applies to all clients, choose All clients (Alle Mandanten).
Start from the email library
X-Sitter provides ready-made templates in the Email library (E-Mail-Bibliothek).
- In the overview click From library (Aus Bibliothek).
- Preview a template with the eye icon.
- Click Apply (Übernehmen) and choose a client or All clients (Alle Mandanten). X-Sitter creates your own copy, which you can then adapt and select in a workflow.
Copies from the library are marked with a book icon. When X-Sitter publishes a new version of a library template, your copy shows New version available (Neue Version verfügbar). You can then
- take over subject and text from the new version (sync button), or
- click Keep (Behalten) to keep your version and hide the notice.
Create a template
- Open WMS › Settings › Email Templates (WMS › Einstellungen › E-Mail-Vorlagen).
- Click New Email Template (Neue E-Mail-Vorlage).
- In the Settings (Einstellungen) panel on the right enter the Template Name (Name der Vorlage), the Client (Mandant) or All clients (Alle Mandanten), the Email Type (Mailtyp) and the Email Text Format (Format des Mailtexts).
- Fill in Recipient (To) (Empfänger (An)), optionally CC and BCC, and the Subject (Betreff).
- Write the Email text (HTML / Twig) (Mailtext (HTML / Twig)). Helpers in the toolbar:
- Insert a block (Baustein einfügen) – ready-made blocks such as salutation, tracking numbers with link, delivery address, item table, closing with company details, or a condition.
- Variables (Variablen) – a searchable list of all placeholders ("Search for a variable …"). A click inserts the code at the cursor position.
- Insert image (Bild einfügen) – a logo or image from the media management.
- Basic Framework (Grundgerüst) – inserts a complete starter text for the selected email type.
- Check the Preview (Vorschau) with Sample Data (Beispieldaten) or a Real Order (Echter Auftrag), and click Refresh Preview (Vorschau aktualisieren) if needed.
- Optional: click Test mail (Testmail) in the preview. X-Sitter sends exactly this preview as an email to your own address – never to the recipients of the template. The subject starts with "[Test]", and you see "Test mail sent to …".
- Click Save (Speichern) – or press Ctrl/Cmd + S.
- In the workflow choose this template under Send Email – see Workflows. A template of the email type Shipping confirmation to the customer can instead be chosen on the client for the shipping notice – see Clients.
Fields and options
Placeholders
Placeholders are written as the variable name in double curly braces – for example the variable name order.order_number in double curly braces becomes the shop's order number. The easiest way is to insert them from the Variables panel. Loops and conditions work the same way as in the PDF templates; the ready-made blocks already contain them.
For a shipping confirmation, use the customer's email (order.delivery_address.email) as recipient and the block "tracking numbers with link" in the text. In the workflow, tick Send only once per order so the customer gets the email only once. If you use the shipping notice of the client instead of a workflow, X-Sitter itself makes sure that only one email goes out per order.
Delete a template
Click the delete icon in the overview. A template that is still used in workflows cannot be deleted – the button is disabled ("Still used in workflows"). Choose another template in those workflows first.