===== E-Mail Templates ===== ==== Introduction ==== Several Attention products send e-mail: AWP notifies about new user accounts and orders, the Scheduler reports finished or failed jobs, the Workflow Engine notifies assignees. None of them carries its own e-mail text. Each such e-mail has a //class// which the sending product contributes, and the text that is actually sent is a //template// for that class, created and edited in this plugin. The e-mail itself is sent by the Fylr server, so its outgoing mail server has to be configured in Fylr's base configuration. The panel has two tabs: //Templates// holds the e-mails, //Layouts// the surrounding header and footer a template can be wrapped in. ==== Templates ==== The table lists every template with its class and name. Which template a product uses is chosen in that product's own configuration - for example the account e-mails in the [[:awp:useraccounts|AWP user accounts]] settings, or the notification e-mail of a [[:awe:notifications|workflow transition]]. A class can have any number of templates, so the same kind of e-mail can be sent in different variants. //Add...// asks for the e-mail class and a name. The name is prefilled with the class name and must be unique. The new template is filled with the default subject and text the class ships with, so it is usable right away and only has to be adapted. //Properties...// opens the editor for the selected template: * //Use Layout// wraps the text of the template in the header and footer of the chosen [[#layouts|layout]]. Without it the text is sent as it is. * //Language// selects which translation of subject and text is being edited. The list offers the data languages of the Fylr instance; a language that already has content is shown in bold. When an e-mail is sent in a language that has no text, the English text is used, and if that is empty as well, the first language that has any. * //Subject// and the text below it are the e-mail. The text may be plain text or HTML - it is sent as HTML when it starts with '''' tag referring to it; only images actually referred to by such a tag are attached to the outgoing e-mail.