🎍 A Sendcloud adapter for the Bamboo.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
fixture/vcr_cassettes
lib/bamboo/adapters
test
.formatter.exs
.gitignore
.tool-versions
CHANGELOG.md
LICENSE
README.md
mix.exs
mix.lock

README.md

Bamboo.SendcloudAdapter

A Sendcloud adapter for the Bamboo.

Installation

If available in Hex, the package can be installed by adding bamboo_sendcloud to your list of dependencies in mix.exs:

def deps do
  [{:bamboo_sendcloud, "~> 0.2.0"}]
end

In config/config.exs, or config.prod.exs, etc.

config :my_app, MyApp.Mailer,
  adapter: Bamboo.SendcloudAdapter,
  api_user: "my_api_user",
  api_key: "my_api_key"

Usage

Send standard email

import Bamboo.Email

email =
  new_email()
  |> from({"Bender", "notify@send1.example.com"})
  |> to(user)
  |> subject("Welcome!")
  |> text_body("Welcome to the app")
  |> html_body("<strong>Welcome to the app</strong>")

Send template email

import Bamboo.Email

email =
  new_email()
  |> from({"Bender", "notify@send1.example.com"})
  |> to(user)
  |> SendcloudHelper.template("reset_password", %{"%link%" => [reset_password_link]})

Docs

https://hexdocs.pm/bamboo_sendcloud.