Creating Email Templates and Using Placeholders
Overview
Every automatic notification (HU, UVV, tyre change, driving licence, leasing, WebRes reservations) uses an email template that you can design freely. Templates consist of a subject and an HTML body containing placeholders that are automatically replaced with the real data (driver name, license plate, due date …) when the mail is sent.
Creating a template
- Open Systemadministration → E-Mail Vorlagen (
/applications/mailTemplates/overview). - The overview shows two tabs:
- Flottenmanager (Fleet Manager) – templates for fleet notifications (HU, UVV, tyres, driving licence, leasing, reports)
- WebRes – templates for the booking portal (reservation confirmations, etc.)
- Click „Neue Vorlage" (New template), choose the area, enter a subject and design the body in the editor.
- Save the template and then assign it under E-Mail Einstellungen (Email Settings) to the relevant notification type.
Tip: Using the copy icon in the overview, you can duplicate an existing template („… - Copy") and only adjust the differences.
Placeholders
You will find the complete, always up-to-date list directly in FMWeb via the „Platzhalter-Hilfe" (Placeholder help) button (/applications/mailTemplates/placeholders) – grouped by General, Driver, Vehicle, Fleet Manager, Driving Licence, Leasing, Mileage Report and WebRes.
The most important placeholders:
| Placeholder | Result |
|---|---|
{{ current_date }} | Current date |
{{ driver.salutation }} | Salutation of the driver |
{{ driver.full_name }} | First and last name of the driver |
{{ vehicle.license_plate }} | License plate |
{{ vehicle.type }} | Vehicle type |
{{ fleet_manager.name }} / {{ fleet_manager.email }} / {{ fleet_manager.phone }} | Details of the fleet manager chosen under „Absenderinformationen" (Sender information) |
{{ license.days_until_due }} / {{ license.days_overdue }} | Days until / since the driving-licence check |
{{ leasing.contract_start }} / {{ leasing.contract_end }} | Lease contract dates |
Older placeholders in the format {Kennzeichen}, {Fahrername}, {AktDatum}, etc. still work – they are automatically converted to the new format when the mail is sent. Existing templates therefore do not need to be migrated.
Conditions and loops (for advanced users)
The templates support simple logic:
{{ if license.is_overdue }}
Your driving-licence check has been overdue for {{ license.days_overdue }} days!
{{ else }}
Your check is due in {{ license.days_until_due }} days.
{{ end }}
The mileage projection report can iterate over all vehicles:
{{ for vehicle in vehicles }}
{{ vehicle.license_plate }}: {{ vehicle.projected_km }} km
{{ end }}
Frequently asked questions
Why is my notification not being sent even though it is enabled? Check whether a template is actually assigned under E-Mail Einstellungen (Email Settings) – no template, no mail.
Can I test a template before sending? There is no direct test send. You can preview mails that have already been generated in the Fahrerakte (driver record) (tab „E-Mails") and check the delivery status in Email Monitoring (article 07).