Variables
Variables allow you to output personalized content in custom uploaded HTML for newsletters. There are two types: simple variables and variable areas.
Basics
In mail2many, variables can be used in custom HTML to output subscriber-specific data.
Two variants:
- Simple variables – Single values like first name or city
- Variable areas – Complete text blocks with multiple variables
Variables and areas can be tested with a test mailing. Subscriber data is used if the subscriber exists in the account.
Available variables
| Id | Name | Example | Subscriber field |
|---|---|---|---|
| 1 | Salutation | Herr, Frau / Mr., Mrs. / Monsieur, Madame | genderId |
| 2 | Firstname | Erika | firstname |
| 3 | Lastname | Mustermann | lastname |
| 4 | City | München | city |
| 5 | Age | 35 | birthday |
| 6 | Formal Salutation | Dear Mr., Dear Mrs. / Cher Monsieur, Chère Madame | genderId |
| 7 | E‑mail | erika.mustermann@example.com | |
| 8 | Individual Salutation | Hello Erika | salutation |
Simple variables
Simple variables are inserted with an ID and should include a default value used when the variable cannot be replaced.
Syntax:
{{V:<ID>:<DEFAULT>}}
Parameters:
<ID>– Variable ID from the table above<DEFAULT>– Fallback value if the variable is empty
Examples:
With default value:
{{V:4:Deutschland}}
→ Outputs city, if empty: "Deutschland"
With empty default:
{{V:2:}}
→ Outputs first name, if empty: nothing, i.e. ""
Variable areas
Variable areas allow you to define complete text blocks with multiple variables. Each area gets a unique area number and a fallback text.
Advantage: More flexible combinations of text and multiple variables. The default applies to the entire area, not per variable.
Syntax:
[[A:-:<AREA-NUMBER>:-:<TEXT>:-:<DEFAULT>]]
Parameters:
<AREA-NUMBER>– Unique number of the area<TEXT>– Text with variables (can include multiple{{V:<ID>}})<DEFAULT>– Fallback text for the entire area
Examples:
Example with salutation and name:
[[A:-:1:-:Hello {{V:1}} {{V:3}}:-:Hello]]
→ Displays "Hello [salutation] [last name]", if empty: "Hello"
Example with city:
[[A:-:2:-:Grüße nach {{V:4}}:-:Viele Grüße]]
→ Displays "Grüße nach [city]", if empty: "Viele Grüße"
If a variable in an area cannot be replaced, the entire area is replaced by the DEFAULT text, not just the single variable.