Swoosh.Adapters.Cloudflare (SwooshCloudflare v0.1.1)

Copy Markdown View Source

Swoosh adapter for Cloudflare Email Service REST API.

Configuration

config :my_app, MyApp.Mailer,
  adapter: Swoosh.Adapters.Cloudflare,
  api_token: System.get_env("CLOUDFLARE_EMAIL_TOKEN"),
  account_id: System.get_env("CLOUDFLARE_ACCOUNT_ID")

Limitations

  • New accounts can only send to verified addresses. Paid plans unlock general sending.
  • The from address must belong to a domain with Email Routing active in the Cloudflare account.
  • Maximum 50 recipients per email.
  • Maximum message size: 5 MiB.

Summary

Functions

validate_config(config)

Callback implementation for Swoosh.Adapter.validate_config/1.

validate_dependency()

Callback implementation for Swoosh.Adapter.validate_dependency/0.