Feature: Mail templates and company texts of notification mails 

Description 

HR keeps a library of mail texts for the company: each template has a name unique in the company, a subject and a body in English and German, and placeholders such as {{ recipient.firstName }}. Only placeholders of the template's kind are accepted, and no template code at all; values are always inserted as text. Bodies keep only paragraphs, headings, lists, tables, emphasis and links to web or mail addresses, so scripts and remote images never get in. A preview shows the mail for a chosen employee or with sample values, exactly as it will be sent, and names the placeholders without a value. Templates can be copied and are rendered as PDF documents for each recipient. A template that automations or company texts use cannot be deleted.

HR can also word the e-mails of built-in notifications for the company, per language. Security notices keep their text, and a text must keep the link to the request or record the notification is about.

Mails show the company's logo as part of the mail, or its name where it has none, and load nothing from the server.

Impact 

The API offers the operations of mail templates under /api/v1/mail-templates and the company texts under /api/v1/notification-mail-texts, for HR; managers read and preview the templates for mails to employees.