There are several merge tag template functions and expressions that can be used in campaign and template bodies. They are written in the form {{ .Subscriber.Email }}
, that is, an expression between double curly braces {{
and }}
.
Subscriber fields
Expression | Description |
---|---|
{{ .Subscriber.UUID }} |
The randomly generated unique ID of the subscriber |
{{ .Subscriber.Email }} |
E-mail ID of the subscriber |
{{ .Subscriber.Name }} |
Name of the subscriber |
{{ .Subscriber.FirstName }} |
First name of the subscriber (automatically extracted from the name) |
{{ .Subscriber.LastName }} |
Last name of the subscriber (automatically extracted from the name) |
{{ .Subscriber.Status }} |
Status of the subscriber (enabled, disabled, blocklisted) |
{{ .Subscriber.Attribs }} |
Map of arbitrary attributes. Fields can be accessed with . , eg: .Subscriber.Attribs.city |
{{ .Subscriber.CreatedAt }} |
Timestamp when the subscriber was first added |
{{ .Subscriber.UpdatedAt }} |
Timestamp when the subscriber was modified |
Expression | Description |
---|---|
{{ .Campaign.UUID }} |
The randomly generated unique ID of the campaign |
{{ .Campaign.Name }} |
Internal name of the campaign |
{{ .Campaign.Subject }} |
E-mail subject of the campaign |
{{ .Campaign.FromEmail }} |
The e-mail address from which the campaign is being sent |
Functions
Function | Description |
---|---|
{{ UnsubscribeURL }} |
Unsubscription and Manage preferences URL. Ideal for use in the template footer. |
{{ MessageURL }} |
URL to view the hosted version of an e-mail message. |