bamboo_mailjet v0.1.0 Bamboo.MailjetAdapter

Sends email using Mailjet's API.

Use this adapter to send emails through Mailjet's API. Requires that both an API and a private API keys are set in the config.

Example config

# In config/config.exs, or config.prod.exs, etc.
config :my_app, MyApp.Mailer,
  adapter: Bamboo.MailjetAdapter,
  api_key: "my_api_key",
  api_private_key: "my_private_api_key"

# Define a Mailer. Maybe in lib/my_app/mailer.ex
defmodule MyApp.Mailer do
  use Bamboo.Mailer, otp_app: :my_app
end

Note: Mailjet provides a "recipients" feature. From the documentation: The recipients listed in Recipients will each receive a separate message without showing all the other recipients. To make use of it in Bamboo, when creating an email, set the "BCC" field only, leaving the TO and CC field empty.

If TO and/or CC field are set, this adapter will generate the TO, CC and BCC fields in the "traditional" way.

Link to this section Summary

Link to this section Functions

Link to this function

deliver(email, config)

Callback implementation for Bamboo.Adapter.deliver/2.