Fortinet black logo

Template variables

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|layout}}

Date with layout See Date with Layout or Offset

{{date|offset}}

Date with offset See Date with Layout or Offset

{{date}}

Date 02-Jan-2006

{{email_domain}}

Recipient's email domain fortiphish.com

{{email_username}}

Recipient's username johndoe

{{num|min|max}}

Generate a random number

{{num|0|10000}} 4470

{{num|0.0|10000.0}} 4470.4

{{recipient_email}}

Recipient's email johndoe@fortiphish.com

{{recipient_firstname}}

Recipient's first name John

{{recipient_lastname}}

Recipient's last name Doe

{{recipient_position}}

Recipient's position Manager

{{time}}

Time 3:04 PM

{{tracking_click_link}}

Link for tracking https://smtp.fortiphish.com/trackings/{{recipient}}

{{qr_code_link}}

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

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|layout}}

Date with layout See Date with Layout or Offset

{{date|offset}}

Date with offset See Date with Layout or Offset

{{date}}

Date 02-Jan-2006

{{email_domain}}

Recipient's email domain fortiphish.com

{{email_username}}

Recipient's username johndoe

{{num|min|max}}

Generate a random number

{{num|0|10000}} 4470

{{num|0.0|10000.0}} 4470.4

{{recipient_email}}

Recipient's email johndoe@fortiphish.com

{{recipient_firstname}}

Recipient's first name John

{{recipient_lastname}}

Recipient's last name Doe

{{recipient_position}}

Recipient's position Manager

{{time}}

Time 3:04 PM

{{tracking_click_link}}

Link for tracking https://smtp.fortiphish.com/trackings/{{recipient}}

{{qr_code_link}}

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