This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:how_to_personalize_emails [2016/09/12 10:32] – [Other variables] bk | en:how_to_personalize_emails [2025/02/27 15:11] (current) – bk | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How can elements of an e-mail | + | ====== How can elements of an email be personalized? |
**Placeholders** are available for commonly used personalization like salutations. They can be easily selected by means of a button. | **Placeholders** are available for commonly used personalization like salutations. They can be easily selected by means of a button. | ||
- | Personalizations that will only be used once can also be integrated via **XML**. We recommend this option in cases where defining a new placeholder would not be worthwhile, or if you want to replace entire sections of your source code. | + | Personalizations that will only be used once can also be integrated via **XML**. We recommend this option in cases where defining a new placeholder would not be worthwhile or if you want to replace entire sections of your source code. |
===== Placeholders ===== | ===== Placeholders ===== | ||
- | Pre-defined placeholders are available to integrate personalized content | + | Pre-defined placeholders are available to integrate personalized content, such as a salutation or a current date, into an email message. |
- | There are 4 types of placeholders. | + | <WRAP round info 60%> |
+ | Placeholders always begin with a dollar sign $. A placeholder must be followed by a space or punctuation mark (e.g., comma, full stop, question mark, exclamation point) to be parsed correctly. | ||
+ | </ | ||
+ | There are three types of placeholders. | ||
Line 16: | Line 19: | ||
=== Functions === | === Functions === | ||
- | These placeholders are generally defined by complex functions with a fallback. For example, this is the case with all salutation placeholders, | + | These placeholders are generally defined by complex functions with a fallback. For example, this is the case with all salutation placeholders, |
- | Some examples of globally available | + | Some examples of globally available |
- | | $current_weekday_en | + | * **$current_weekday_en**: Current weekday, e.g., " |
- | | $salutation_en_formal | + | * **$salutation_en_formal**: Male: Dear Mr. NAME, Female: Dear Ms. NAME, Fallback: Dear Sir or Madam, |
- | | $salitation_en_firstname | Dear VORNAME, Fallback: Dear Reader, | + | * **$salutation_en_firstname**: |
- | | $salutation_en_firstname_name | + | * **$salutation_en_firstname_name**: Dear VORNAME NAME, Fallback: Dear Reader, |
Line 35: | Line 38: | ||
- | === Statics | + | === Statistics |
- | These placeholders are frequently used, predefined blocks of text. With these, you can insert a reference to the online version (// | + | These placeholders are frequently used, predefined blocks of text. With these, you can insert a reference to the online version (// |
- | === Client-specific Statics | + | ==== Where can I find the placeholders? |
- | These placeholders | + | You can select all placeholders |
+ | === In an individually defined template or E-Mail Builder, you can find them when editing single lines of text === | ||
+ | {{: | ||
- | ==== Where can I find the placeholders? | + | === In an individually defined template or E-Mail Builder, you can find them when editing sections of text === |
- | + | {{: | |
- | You can select all placeholders via a drop-down menu. Depending on the editor / e-mail template you’re using, you can find the placeholders here in your e-mail’s editing view: | + | |
- | | In the new 2014 editor, you can find them when editing single lines of text: | {{: | + | === In the default editor (HTML/Text multipart or Text) === |
- | | In the new 2014 editor, you can find them when editing sections of text: | {{: | + | {{:en:delivery_drafts_creatives_placeholder_multi.png? |
- | | In the editor of the Multipart2015 template: | {{: | + | |
- | | In the default editor (HTML/text multipart or individually defined template): | {{:en:personalisation_editorold.png? | + | |
- | | In the application promio.mail.one: | + | |
==== Other variables ==== | ==== Other variables ==== | ||
- | Other variable content that can be used in e-mails: | + | Other variable content that can be used in emails |
| $from_address | Sender’s address | | | $from_address | Sender’s address | | ||
| $redirect_domain | Redirect your sender’s domain | | | $redirect_domain | Redirect your sender’s domain | | ||
- | | $newsletterName | Name of the newsletter the e-mail | + | | $newsletterName | Name of the newsletter the message |
- | | $newsletterId | ID of the newsletter the email is associated with | | + | | $newsletterId | ID of the newsletter the message |
- | | $campaignId | ID of the campaign the e-mail | + | | $campaignId |
- | | $letter_id | + | | $lid | ID of message | |
+ | | $id (or: $user_id) | unique ID of recipient | ||
===== XML Syntax ===== | ===== XML Syntax ===== | ||
- | Using XML syntax, you can integrate personalized elements directly into an e-mail’s source code. In addition to personalized salutations, | + | Using XML syntax, you can integrate personalized elements directly into an email’s source code. In addition to personalized salutations, |
==== Short documentation ==== | ==== Short documentation ==== | ||
Line 85: | Line 87: | ||
<WRAP round tip 80%> | <WRAP round tip 80%> | ||
- | You can not nest multiple loops using this code. Instead, a placeholder should be defined for more complex tasks. | + | You cannot |
</ | </ | ||
Line 106: | Line 108: | ||
===== Possible applications ===== | ===== Possible applications ===== | ||
- | Placeholders and XML syntax can be used in the following sections of an e-mail: | + | Placeholders and XML syntax can be used in the following sections of an email: |
* HTML source code | * HTML source code | ||
* TXT section | * TXT section | ||
* Template editors [change into source code view when using XML!] | * Template editors [change into source code view when using XML!] | ||
- | Depending on the placeholder’s type, you can also use personalization in subject lines, sender names and inside links: | + | Depending on the placeholder’s type, you can also use personalization in subject lines, sender names, and inside links: |
- | | Subject line | Functions, fields, variables, XML | | + | | Subject line | Functions, fields, variables, |
- | | Links | Fields, $newsletterId, | + | | Links | Fields, $newsletterId, $camp_id, $salutation_de_gender, |
- | | Sender name | Fields, variables | | + | | Sender name | Functions, fields, and variables | |
- | Placeholders in links are replaced by the actual content at the moment of clicking. This allows security-relevant data to be " | + | Placeholders in links are replaced by the actual content at the moment of clicking. This allows security-relevant data to be " |
<WRAP round tip 80%> | <WRAP round tip 80%> | ||
- | We recommend testing your e-mail’s personalization by sending test e-mails! | + | We recommend testing your email’s personalization by sending test emails! |
- | For technical reasons, some variables are not visible in the promio.mail preview. | + | For technical reasons, some variables are not visible in the promio.connect |
</ | </ | ||
- | + | {{tag>emails personalizations placeholders | |
- | + | ||
- | {{tag>e-mail personalization placeholder xml-syntax functions statics}} | + |