Template variables
You can add template variables to the email subject and body to generate dynamic data when the campaign is running. Template variables are only supported in custom templates.
Supported Variables for custom template
Variable |
Description | Output |
---|---|---|
|
Date with layout | See Date with Layout or Offset |
|
Date with offset | See Date with Layout or Offset |
|
Date | 02-Jan-2006 |
|
Recipient's email domain | fortiphish.com |
|
Recipient's username | johndoe |
|
Generate a random number |
|
|
Recipient's email | johndoe@fortiphish.com |
|
Recipient's first name | John |
|
Recipient's last name | Doe |
|
Recipient's position | Manager |
|
Time | 3:04 PM |
|
Link for tracking | https://smtp.fortiphish.com/trackings/{{recipient}} |
|
QR code for tracking |
QR code image will be inserted |
Date with Layout or Offset
{{date|layout}}
Standard |
Format |
---|---|
ANSIC |
Mon Jan _2 15:04:05 2006 |
UnixDate |
Mon Jan _2 15:04:05 MST 2006 |
RubyDate |
Mon Jan 02 15:04:05 -0700 2006 |
RFC822 |
02 Jan 06 15:04 MST |
RFC822Z |
02 Jan 06 15:04 -0700 |
RFC850 |
Monday, 02-Jan-06 15:04:05 MST |
RFC1123 |
Mon, 02 Jan 2006 15:04:05 MST |
RFC1123Z |
Mon, 02 Jan 2006 15:04:05 -0700 |
RFC3339 |
2006-01-02T15:04:05Z07:00 |
RFC3339Nano |
2006-01-02T15:04:05.999999999207:00 |
Example:
{{date|02-Jan-2006 3:04 PM}}
Output:
09-0ct-2021 3:04 PM
{{date/offset}}
date: 01 Jan 2021
Type | Symbol | Example | Result |
---|---|---|---|
Day | d | {{date|+1d}}
|
02-Jan-2021 |
Week | w | {{date|+2w}}
|
15-Jan-2021 |
Month | m | {{date|+3m}}
|
01-Apr-2021 |
Year | y | {{date|-3y}}
|
01-Jan-2018 |