View Source Bamboo.SesAdapter (bamboo_ses v0.4.4)
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 email tags
Set the SES feedback forwarding address
Set the SES feedback forwarding address arn
Set the SES FromEmailAddressIdentityArn.
Set the SES list management options
Set the SES template params: name, data, ARN
Implements Bamboo.Adapter callback
Link to this section Functions
Implements Bamboo.Adapter callback
Implements Bamboo.Adapter callback
Set the SES configuration set name.
example
Example
email
|> Bamboo.SesAdapter.set_configuration_set("my-configuration-set")
Set email tags
example
Example
email_tags = [
%{
"Name" => "color",
"Value" => "red"
},
%{
"Name" => "temp",
"Value" => "cold"
}
]
email
|> Bamboo.SesAdapter.set_email_tags(email_tags)
Set the SES feedback forwarding address
example
Example
email
|> Bamboo.SesAdapter.set_feedback_forwarding_address("FEEDBACK FORWARDING ADDRESS")
Set the SES feedback forwarding address arn
example
Example
email
|> Bamboo.SesAdapter.set_feedback_forwarding_address_arn("FEEDBACK FORWARDING ADDRESS ARN")
Set the SES FromEmailAddressIdentityArn.
example
Example
email
|> Bamboo.SesAdapter.set_from_arn("SOME ARN")
Set the SES list management options
example
Example
email
|> Bamboo.SesAdapter.set_list_management_options("a contact list name", "a topic name")
set_template_params(mail, template_name, template_data, template_arn \\ nil)
View SourceSet 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