Skip to main content

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
tip

Variables and areas can be tested with a test mailing. Subscriber data is used if the subscriber exists in the account.

Available variables

IdNameExampleSubscriber field
1SalutationHerr, Frau / Mr., Mrs. / Monsieur, MadamegenderId
2FirstnameErikafirstname
3LastnameMustermannlastname
4CityMünchencity
5Age35birthday
6Formal SalutationDear Mr., Dear Mrs. / Cher Monsieur, Chère MadamegenderId
7E‑mailerika.mustermann@example.comemail
8Individual SalutationHello Erikasalutation

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"

info

If a variable in an area cannot be replaced, the entire area is replaced by the DEFAULT text, not just the single variable.