Skip to content

SparkPost/bamboo_sparkpost

 
 

Repository files navigation

Sign up for a SparkPost account and visit our Developer Hub for even more content.

Bamboo SparkPost Adapter

Travis CI Coverage Status Slack Status

An Adapter for the Bamboo email app.

Installation

The package can be installed as:

  1. Add bamboo_sparkpost to your list of dependencies in mix.exs:
def deps do
  [{:bamboo_sparkpost, "~> 0.5.0"}]
end
  1. Ensure bamboo is started before your application:
def application do
  [applications: [:bamboo]]
end
  1. Add your SparkPost API key to your config
# In your config/config.exs file
config :my_app, MyApp.Mailer,
  adapter: Bamboo.SparkPostAdapter
  api_key: "my-api-key"
  1. Follow Bamboo Getting Started Guide

Advanced Usage

The SparkPost adapter provides a helper module for setting tags and other meta data

Examples

include Bamboo.SparkPostHelper

email
|> tag("my-tag")
|> mark_transactional
|> disable_open_tracking
|> disable_click_tracking
|> meta_data(foo: "bar")

Packages

No packages published

Languages

  • Elixir 100.0%