Miscellaneous: Tips and tricks for placeholders
To personalize the content of your mailings, landing pages etc., you can insert a subscriber's data using placeholders such as [Anrede /] or [Kundennummer /]. Input assistance is available for this in many places.

Below we present additional placeholders and options.
Account properties
You can output certain account properties, e.g. to use them as part of a link URL.
| Description | Input |
| Account ID | [SYSTEM key='account-id' /] |
| Customer number | [SYSTEM key='customer-number' /] |
| Login domain | [SYSTEM key='login-domain' /] |
| Redirect domain | [SYSTEM key='redirect-domain' /] |
Date and time
You can output the current date or the date from a subscriber field, format it in a national language, shift it in time if required or calculate the age of the birthday child.
Outputting the current date
The "DATETIME" placeholder outputs the current date or time. For a sent mailing, this is the send time for the respective subscriber, more precisely the moment of their personalization.
Assume the send date is March 16, 2021:
| Input | Output |
| [DATETIME format='%d.%m.%y' /] | 16.03.21 |
| [DATETIME format='%d. %B %Y' locale='de_DE' /] | 16. März 2021 |
| [DATETIME format='%d.%m.%Y um %H:%M:%S Uhr' /] | 16.03.2021 um 15:34:13 Uhr |
| [DATETIME format='%A, %d.%m.%Y, Kalenderwoche %V' locale='de_DE' /] | Dienstag, 16.03.2021, Kalenderwoche 11 |
Formatting a date in a national language
| Input | Output |
| [DATETIME format='%A, %Y/%m/%d' locale='en_US' /] | Tuesday, 2021/03/16 |
| [DATETIME format='%A, %d. %B %Y' locale='fr_FR' /] | mardi, 16. mars 2021 |
| [DATETIME format='%A, %Y/%m/%d' locale='es_ES' /] | martes, 16. marzo 2021 |
| [DATETIME format='%A, %d. %B %Y' locale='mk_MK' /] | вторник, 16. март 2021 |
| [DATETIME format='%A, %d. %B %Y' locale='nl_NL' /] | dinsdag, 16. maart 2021 |
| [DATETIME format='%A, %d. %B %Y' locale='ro_RO' /] | marți, 16. martie 2021 |
| [DATETIME format='%A, %d. %B %Y' locale='sl_SI' /] | torek, 16. marec 2021 |
emma currently supports the following language variants:
de_AT
de_CH
de_DE
en_AG
en_AU
en_BW
en_CA
en_DK
en_GB
en_HK
en_IE
en_IL
en_IN
en_NG
en_NZ
en_PH
en_SG
en_US
en_ZA
en_ZM
en_ZW
es_ES
fr_FR
it_IT
mk_MK
nl_NL
ro_RO
sl_SI
Outputting a date from a subscriber field
All formats described above can also be used to output the value of a subscriber field of the type "Date" or "Date and time". In this case, you must also use the format parameter 'date'. Assume the subscriber field has the alias "Veranstaltungsbeginn" (event start):
| Input | Output |
| Die Veranstaltung beginnt am [Veranstaltungsbeginn format='date %A, %d. %B %Y' locale='de_DE' /] um [Veranstaltungsbeginn format='date %H:%M' /] Uhr. | Die Veranstaltung beginnt am Donnerstag, 27. Mai 2021 um 15:30 Uhr. |
Shifting a date in time
The "adjustment" parameter lets you shift the output date in time. Assume the send date is March 16, 2021 and you want to subtract 2 weeks:
| Input | Output |
| [DATETIME format='%d.%m.%Y' adjustment='-2 weeks' /] | 02.03.2021 |
The same is possible for the date of a subscriber field. Assume the subscriber field with the ID 5 (please do not use the alias) contains the date 31.12.1984 and you want to add 3 days:
| Input | Output |
| [DATETIME base='%{5}' format='%d.%m.%Y' adjustment='+3 days' /] | 03.01.1985 |
Outputting a date difference
The "DATEDIFF" function outputs the difference between two dates, for example between the send date and the date in a subscriber field. Assume the subscriber field has the ID 5 (please do not use the alias):
| Input | Output |
| Glückwunsch zum [DATEDIFF start='now +1 days' end='%{5}' format='%y' /]. Geburtstag! | Glückwunsch zum 36. Geburtstag! |
| Dein Geburtstag ist inzwischen [DATEDIFF start='now' end='%{5}' format='%y Jahre, %m Monate und %d Tage' /] her. | Dein Geburtstag ist inzwischen 36 Jahre, 2 Monate und 13 Tage her. |
Country
The content of a subscriber field of the type "List of countries" can be output in any national language. Assume the subscriber field has the alias "Land" (country):
| Input | Output |
| [Land format='country name' locale='en_EN' /] | Germany |
| [Land format='country name' locale='de_DE' /] | Deutschland |
The language codes correspond to the examples in the section 'Formatting a date in a national language'.
Mailing tags
If you have created mailing tags to evaluate your mailing statistics grouped in the Export wizard, you can also output the tags in the mailing, e.g. as part of a link URL.
| Input | Output |
| [MAILING-TAG name='Redakteur' default='Wert wenn name nicht gefunden' /] or [MAILING-TAG id='1' default='Wert wenn id nicht gefunden' /] |
Erika Musterredakteurin |
Multi-line text field
To actually output the content of a subscriber field of the type "Multi-line text" on several lines, emma can automatically convert the line breaks it contains into an HTML line break <br />.
Assume the subscriber field has the alias "MehrzeiligesTextfeld" (multi-line text field) and contains two lines of text:
| Input | Output |
| [MehrzeiligesTextfeld /] | Line 1Line 2 |
| [MehrzeiligesTextfeld transform='eol-to-br' /] | Line 1 Line 2 |
The advantage of the second variant is that you do not have to include HTML line breaks in the field contents, which would also be visible as a distracting <br /> in the text version of your multipart mailing.
Miscellaneous
| Description | Input |
| Subscriber ID | [FIELD property='subscriber-id' /] |
| Mailing ID | [SYSTEM key='email-id' /] |
