bamboo v0.8.0 Bamboo.SendgridHelper

Functions for using features specific to Sendgrid.

Example

email
|> with_template("80509523-83de-42b6-a2bf-54b7513bd2aa")
|> substitute("%name%", "Jon Snow")
|> substitute("%location%", "Westeros")

Summary

Functions

Add a tag to the list of substitutions in the SendGrid template

Specify the template for SendGrid to use for the context of the substitution tags

Functions

substitute(email, tag, value)

Add a tag to the list of substitutions in the SendGrid template.

The tag must be a String.t due to SendGrid using special characters to wrap tags in the template.

Example

email
|> substitute("%name%", "Jon Snow")
with_template(email, template_id)

Specify the template for SendGrid to use for the context of the substitution tags.

Example

email
|> with_template("80509523-83de-42b6-a2bf-54b7513bd2aa")