Body Payload Customisation


In addition to attachments and links, body payloads provide a great opportunity to test mail gateway protections against threats like brand impersonation and business email compromise attempts.

Body payloads have a range of built-in variables that are populated at send time. These are denoted by the syntax, #{}, and can be leveraged in your own custom payloads. Populating a body payload with the recipient’s email address, for example, could be achieved with a #{RECIPIENT_EMAIL} placeholder.

NOTE: Variable substitution is currently only performed for body payloads, not to attachments and links.

Campaign Variables

Variable Example Value
CAMPAIGN_NAME Threat Intel
CAMPAIGN_ID 8e299775-538d-4927-8166-7fbb47edddfd

Recipient Variables

Variable Example Value
RECIPIENT_EMAIL test-mailbox@delivr.to
RECIPIENT_EMAIL_BASE64 dGVzdC1tYWlsYm94QGRlbGl2ci50bw==
RECIPIENT_EMAIL_LOCAL_PART test-mailbox
RECIPIENT_EMAIL_LOCAL_PART_CAPITALIZE Test Mailbox
RECIPIENT_EMAIL_DOMAIN delivr.to
RECIPIENT_EMAIL_DOMAIN_SLD delivr
RECIPIENT_EMAIL_DOMAIN_SLD_CAPITALIZE Delivr

Date Variables

Variable Example Value
CURRENT_YEAR 2024
CURRENT_DAY_NAME Monday
CURRENT_DAY_NUMBER 20
CURRENT_MONTH_NAME December
CURRENT_MONTH_NUMBER 12
NEXT_DAY_NAME Tuesday
NEXT_DAY_NUMBER 21
NEXT_WEEK_DAY_NUMBER 27
NEXT_WEEK_MONTH_NAME December
NEXT_WEEK_MONTH_NUMBER 01
NEXT_MONTH_NAME January
CURRENT_DATE_YYYY-MM-DD 2024-12-20
CURRENT_DATE_DD_MONTH_YYYY 20 December 2024