Swoosh.Adapters.Sendinblue (Swoosh v1.5.0) View Source
An adapter that sends email using the Sendinblue API (Transactional emails only).
For reference: Sendinblue API docs
Example
# config/config.exs
config :sample, Sample.Mailer,
adapter: Swoosh.Adapters.Sendinblue,
api_key: "my-api-key"
# lib/sample/mailer.ex
defmodule Sample.Mailer do
use Swoosh.Mailer, otp_app: :sample
end
Using sender from template
YOUR_EMAIL
|> from("TEMPLATE") # literally "TEMPLATE"
|> put_provider_option(:template_id, YOUR_TEMPLATE_ID)
Provider Options
sender_id
(integer)template_id
(integer)params
(map)tags
(list)
Link to this section Summary
Functions
Callback implementation for Swoosh.Adapter.validate_config/1
.
Callback implementation for Swoosh.Adapter.validate_dependency/0
.
Link to this section Functions
Callback implementation for Swoosh.Adapter.validate_config/1
.
Callback implementation for Swoosh.Adapter.validate_dependency/0
.