bamboo_mailjet v0.1.0 Bamboo.MailjetHelper

Functions for using features specific to Mailjet

Link to this section Summary

Functions

Add a custom id to the email

Add a event payload to the email

Add a variable to the email

Set the template ID to use for the email contents

Set whether to activate the interpretation of the template language

Link to this section Functions

Link to this function

put_custom_id(email, value)

Add a custom id to the email

this can be used to add a custom id to the email, which will be returned in the mailjet event callback api

Link to this function

put_event_payload(email, value)

Add a event payload to the email

this can be used to add an event payload to the email, which will be returned in the mailjet event callback api

Link to this function

put_var(email, key, value)

Add a variable to the email.

This can be used for email personalization when using variables in the template.

Example

email
|> put_var("name", "Arthur")
|> put_var("reset_token", "8938463f-8910-461b-8b4b-e9d0368e979c")
Link to this function

template(email, template_id)

Set the template ID to use for the email contents.

This overrides any message body provided.

Example

email
|> template("4242")
Link to this function

template_language(email, active)

Set whether to activate the interpretation of the template language.

Defaults to false.

Example

email
|> template_language(true)