Both sides previous revision Previous revision Next revision | Previous revision |
en:2.0:e-mail-templates [2019/07/24 22:25] – [Wie nutze ich Vorlagen bei mehreren Organisationen?] fasse | en:2.0:e-mail-templates [2024/12/01 19:07] (current) – [How do I use templates with multiple organizations?] greno |
---|
FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | |
| |
====== Set up E-mail templates ====== | ====== Set up E-mail templates ====== |
===== What are e-mail templates? ===== | ===== What are e-mail templates? ===== |
The e-mail template is defined via an HTML file. In Admidio Version 3, only one file named **template.html** can be used. //From Admidio Version 4// you can create several templates and choose the name freely. It always has to be a file with the extension **.html**. Even if you do not want to use HTML emails, you need to create an HTML file, but then just add text there. //From Admidio Version 4// you can now select in the settings of **messages** at **e-mail template** the file you just created. | The e-mail template is defined via an HTML file. In Admidio Version 3, only one file named **template.html** can be used. //From Admidio Version 4// you can create several templates and choose the name freely. It always has to be a file with the extension **.html**. Even if you do not want to use HTML emails, you need to create an HTML file, but then just add text there. //From Admidio Version 4// you can now select in the settings of **messages** at **e-mail template** the file you just created. |
| |
{{:de:2.0:messages:settings_email_template.png?400|Preferences > Messages}} | {{:en:2.0:messages:settings_email_template_en.png?400|Preferences > Messages}} |
| |
Within the html-file you can add further content with [[de:2.0:e-mail-templates#wie_baue_ich_parameter_in_die_vorlage_ein | predefined parameters]]. Mandatory is the parameter **#message#**, which adds the actual content of the e-mail. You can then place this parameter in your template as you like. | Within the html-file you can add further content with [[de:2.0:e-mail-templates#wie_baue_ich_parameter_in_die_vorlage_ein | predefined parameters]]. Mandatory is the parameter **#message#**, which adds the actual content of the e-mail. You can then place this parameter in your template as you like. |
| |
The following parameters are available: | The following parameters are available: |
^ Parameter ^ Mindestversion ^ Beschreibung ^ | ^ Parameter ^ Minimum version ^ Description ^ |
| #message# | 3.0 | Der Inhalt der E-Mail. **Dieser Parameter muss in jeder Vorlage hinterlegt werden!** | | | #message# | 3.0 | The content of the e-mail. :!: **This parameter must be used in each template**. | |
| #sender# | 3.0 | Bitte nur in Version 3.x nutzen. Vorname und Nachname des Absenders | | | #sender# | 3.0 | Please only use in version 3.x. First name and surname of the sender. | |
| #sender_name# | 4.0 | Vorname und Nachname des Absenders | | | #sender_name# | 4.0 | First name and surname of the sender. | |
| #sender_email# | 4.0 | E-Mail Adresse des Absenders | | | #sender_email# | 4.0 | E-mail address of the sender. | |
| #receiver# | 3.0 | Bitte nur in Version 3.x nutzen. Empfänger der E-Mail. Rollen und einzelne Benutzer. | | | #sender_uuid# | 4.1 | The unique UUID of the sender. | |
| #recipients# | 4.0 | Empfänger der E-Mail. Rollen und einzelne Benutzer (bei BCC-Versand nur die Anzahl der einzelnen Benutzer)\\ Beispiel: //Mitglieder, Vorstand und 3 einzelne Benutzer//. | | | #receiver# | 3.0 | Please only use in version 3.x. Recipients of the e-mail. Roles and individual users. | |
| #organization_name# | 4.0 | Name der Organisation. | | | #recipients# | 4.0 | Recipients of the e-mail. Roles and individual users (for sending as BCC only the number of individual users)\\ Example: //Members, Administrators and 3 individual users//. | |
| #organization_shortname# | 4.0 | Abkürzung der Organisation. | | | #organization_name# | 4.0 | Name of the organization. | |
| #organization_website# | 4.0 | Webseite der Organisation. | | | #organization_shortname# | 4.0 | Abbreviation of the organization. | |
| | #organization_website# | 4.0 | Website of the organization. | |
| |
===== How do I use templates with multiple organizations? ===== | ===== How do I use templates with multiple organizations? ===== |
If you just want to put the organization's name or website in the template, you can use [[de:2.0:e-mail-templates#wie_baue_ich_parameter_in_die_vorlage_ein | the parameters]] **#organization_name#**, **#organization_shortname#** or **#organization_website#**. Deposite it anywhere in the template. As soon as the e-mail is created, it will be replaced by the respective organizational data. | If you just want to put the organization's name or website in the template, you can use [[de:2.0:e-mail-templates#wie_baue_ich_parameter_in_die_vorlage_ein | the parameters]] **#organization_name#**, **#organization_shortname#** or **#organization_website#**. Deposite it anywhere in the template. As soon as the e-mail is created, it will be replaced by the respective organizational data. |
| |
If you also want to place a logo, lettering or a color scheme of the organization in the template next to the name, you will need to create separate HTML templates. There you can then adapt via CSS or the integration of images, the template to your imagination and save it under a separate name, for example **template-organization-1.html** in the folder **adm_my_files/mail_templates**. Now go into the settings of the respective organization and select now under the settings of the **messages** at **email template** the template of that organization. | If you also want to place a logo, lettering or a color scheme of the organization in the template next to the name, you will need to create separate HTML templates. There you can then adapt via CSS or the integration of images, the template to your imagination and save it under a separate name, for example **template-organization-1.html** in the folder **adm_my_files/mail_templates**. Now go into the settings of the respective organization and select under the settings of the **messages** at **email template** the template of that organization. |