Bamboo Sparkpost Adapter v0.0.1 Bamboo.SparkpostAdapter
Sends email using Sparkpost’s JSON API.
Use this adapter to send emails through Sparkpost’s API. Requires that an API
key is set in the config. See Bamboo.SparkpostHelper for extra functions that
can be used by Bamboo.SparkpostAdapter (tagging, merge vars, etc.)
Example config
# In config/config.exs, or config/prod.exs, etc.
config :my_app, MyApp.Mailer,
adapter: Bamboo.SparkpostAdapter,
api_key: "my_api_key"
# Define a Mailer. Maybe in lib/my_app/mailer.ex
defmodule MyApp.Mailer do
use Bamboo.Mailer, otp_app: :my_app
end
Summary
Functions
Callback implementation for c:Bamboo.Adapter.deliver/2