Helper functions for Swoosh emails using the Mailcast adapter.
Summary
Functions
Add a tag to the email.
Disable click tracking for the email.
Disable open tracking for the email.
Enable click tracking for the email.
Enable open tracking for the email.
Add to the data for the email.
Set the data for the email. Data is used for variable substitution in the template language.
Set the tags for the email.
Set the template ID for the email.
Set the transactional flag for the email.
Functions
Add a tag to the email.
Examples
email
|> Mailcast.Swoosh.Helper.add_tag("tag1", "value1")
Disable click tracking for the email.
Examples
email
|> Mailcast.Swoosh.Helper.disable_click_tracking()
Disable open tracking for the email.
Examples
email
|> Mailcast.Swoosh.Helper.disable_open_tracking()
Enable click tracking for the email.
Examples
email
|> Mailcast.Swoosh.Helper.enable_click_tracking()
Enable open tracking for the email.
Examples
email
|> Mailcast.Swoosh.Helper.enable_open_tracking()
Add to the data for the email.
Examples
email
|> Mailcast.Swoosh.Helper.put_data("first_name", "John")
Set the data for the email. Data is used for variable substitution in the template language.
This will replace the existing data.
Examples
email
|> Mailcast.Swoosh.Helper.set_data(%{"first_name" => "John", "last_name" => "Doe"})
Set the tags for the email.
This will replace the existing tags.
Examples
email
|> Mailcast.Swoosh.Helper.set_tags([%{name: "tag1", value: "value1"}])
Set the template ID for the email.
Examples
email
|> Mailcast.Swoosh.Helper.set_template_id("template_01jzqtmznaexgb9d3rpectx870")
Set the transactional flag for the email.
Examples
email
|> Mailcast.Swoosh.Helper.set_transactional()