Bamboo.FallbackAdapter (bamboo_fallback v2.0.0)
This adapter allows you to compose multiple adapters to increase the guarantee of delivering. It applies adapters one by one and fails only when all adapters fail.
Config example:
config :myapp, MyApp.Mailer,
adapter: Bamboo.FallbackAdapter,
fallback_options: [
{Bamboo.SendGridAdapter, api_key: "SENDGRID_API_KEY"},
{Bamboo.MailgunAdapter, api_key: "MAILGUN_API_KEY", domain: "MAILGUN_DOMAIN"}
]
Link to this section Summary
Functions
Callback implementation for Bamboo.Adapter.deliver/2
.
Callback implementation for Bamboo.Adapter.handle_config/1
.
Callback implementation for Bamboo.Adapter.supports_attachments?/0
.
Link to this section Functions
Link to this function
deliver(email, map)
Callback implementation for Bamboo.Adapter.deliver/2
.
Link to this function
handle_config(config)
Callback implementation for Bamboo.Adapter.handle_config/1
.
Link to this function
supports_attachments?()
Callback implementation for Bamboo.Adapter.supports_attachments?/0
.