View Source Bamboo.SesAdapter (bamboo_ses v0.4.5)

Sends email using AWS SES API v2.

Use this adapter to send emails through AWS SES API v2.

Link to this section Summary

Functions

Implements Bamboo.Adapter callback

Implements Bamboo.Adapter callback

Set the SES configuration set name.

Set the SES feedback forwarding address

Set the SES feedback forwarding address arn

Set the SES FromEmailAddressIdentityArn.

Implements Bamboo.Adapter callback

Link to this section Functions

Implements Bamboo.Adapter callback

Implements Bamboo.Adapter callback

Link to this function

set_configuration_set(mail, configuration_set_name)

View Source

Set the SES configuration set name.

example

Example

email
|> Bamboo.SesAdapter.set_configuration_set("my-configuration-set")
Link to this function

set_email_tags(mail, email_tags)

View Source

Set email tags

example

Example

email_tags = [
  %{
    "Name" => "color",
    "Value" => "red"
  },
  %{
    "Name" => "temp",
    "Value" => "cold"
  }
]
email
|> Bamboo.SesAdapter.set_email_tags(email_tags)
Link to this function

set_feedback_forwarding_address(mail, address)

View Source

Set the SES feedback forwarding address

example

Example

email
|> Bamboo.SesAdapter.set_feedback_forwarding_address("FEEDBACK FORWARDING ADDRESS")
Link to this function

set_feedback_forwarding_address_arn(mail, arn)

View Source

Set the SES feedback forwarding address arn

example

Example

email
|> Bamboo.SesAdapter.set_feedback_forwarding_address_arn("FEEDBACK FORWARDING ADDRESS ARN")
Link to this function

set_from_arn(mail, from_arn)

View Source

Set the SES FromEmailAddressIdentityArn.

example

Example

email
|> Bamboo.SesAdapter.set_from_arn("SOME ARN")
Link to this function

set_list_management_options(mail, contact_list_name, topic_name)

View Source

Set the SES list management options

example

Example

email
|> Bamboo.SesAdapter.set_list_management_options("a contact list name", "a topic name")
Link to this function

set_template_params(mail, template_name, template_data, template_arn \\ nil)

View Source

Set the SES template params: name, data, ARN

example

Example

template_data = Jason.encode!(%{subject: "My subject", html: "<b>Bold text</b>", text: "Text"})

email
|> Bamboo.SesAdapter.set_template_params("my-template", template_data)

# or with template ARN
email
|> Bamboo.SesAdapter.set_template_params("my-template", template_data, "TEMPLATE ARN")

Implements Bamboo.Adapter callback