Skip to main content
Status: Available from Swoosh 1.28.0. Swoosh.Adapters.TurboSMTP sends email and attachments through the turboSMTP HTTP API. It supports Global and EU endpoints, provider options, and automatic inline-CID qualification. See the published package.

Install

Add {:swoosh, "~> 1.28"} to your Mix dependencies and run mix deps.get. Configure an API client supported by Swoosh, such as Req, Finch, or Hackney.

Configure the mailer

Add the adapter to your mailer config and load your Consumer Key and Consumer Secret from environment variables.
Place the chosen configuration in config/runtime.exs. The default Global base URL is https://api.turbo-smtp.com/api/v2. Define your mailer if you do not already have one:
lib/sample/mailer.ex
Set base_url to https://api.eu.turbo-smtp.com/api/v2 to send through turboSMTP’s European servers. See GDPR and data residency.

Send the first message

Resources

Adapter Documentation

Full reference for Swoosh.Adapters.TurboSMTP on HexDocs.

Merged Pull Request

The Swoosh pull request that added the turboSMTP adapter.