Bamboo Campaign Monitor Adapter v0.1.0 Bamboo.CampaignMonitorAdapter View Source
Sends email using Campaign Monitor's JSON API.
Use this adapter to send emails through Campaign Monitor's API. Requires that an API key is set in the config.
If you would like to add a replyto header to your email, then simply pass it in using the header property or put_header function like so:
put_header("reply-to", "foo@bar.com")
Example config
# In config/config.exs, or config.prod.exs, etc.
config :my_app, MyApp.Mailer,
adapter: Bamboo.CampaignMonitorAdapter,
api_key: "my_api_key", # or System.get_env("API_KEY")
client_id: "my_client_id" # or System.get_env("CLIENT_ID")
# Define a Mailer. Maybe in lib/my_app/mailer.ex
defmodule MyApp.Mailer do
use Bamboo.Mailer, otp_app: :my_app
end
Link to this section Summary
Functions
Callback implementation for Bamboo.Adapter.deliver/2
.
Link to this section Functions
Link to this function
deliver(email, config) View Source
Callback implementation for Bamboo.Adapter.deliver/2
.