Swoosh v0.4.0 Swoosh.Adapter behaviour

Specification of the email delivery adapter.

Summary

Callbacks

Delivers an email with the given config

Types

email :: Email.t
t :: module

Callbacks

deliver(email, config)

Specs

deliver(email, config) ::
  {:ok, term} |
  {:error, term}

Delivers an email with the given config.