“Blast” Object

Welcome to our newly overhauled Zephyr pages! See our new Overview, Examples, and Index.
Feedback is welcome at bottom of each page.

Within any Zephyr context, the blast object contains a number of useful pieces of data about the current campaign email message. This object is is useful for populating dynamic sections of an email based on items such as the sending list.

Here is a sample message object:

{
  "id" : 123456 ,
  "name" : "Daily Email 08-01-2017" ,
  "list" : "Daily Newsletter" ,
  "suppress_list" : "180 Day Non Openers" ,
  "from_email" : "example@sailthru.com"
}
Field Type Description
id integer The blast/campaign ID
name string The name of the campaign
list string The target list for sending
suppress_list string Any list(s) being suppressed from the campaign
from_email string The “from” email address of the campaign


This can be useful for creating a dynamic, list-level optdown from the campaign (provided that the campaign was sent to a Natural List) by appending the {blast.list} value as a query parameter, like so:

<p><small>If you believe this has been sent to you in error, please safely <a href="{optout_confirm_url}&list={blast.list}">unsubscribe</a>.</small></p> 

Then on your optout page:

{if list}
<p>Click here to opt out of {list} emails</p>
<form action="" method="post">
<input type="hidden" name ="lists[{list}]" value="0" />
<input name="action" value="Optout" type="submit" />
</form>
<br/>
{/if}

This section will check if there is a query parameter called “list”, and if so, dynamically populate the list name from which the user will be able to remove themself.

Top