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.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
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.