# `Swoosh.Adapters.Local`
[🔗](https://github.com/swoosh/swoosh/blob/v1.25.0/lib/swoosh/adapters/local.ex#L1)

An adapter that stores the email locally, using the specified storage driver.

This is especially useful in development to avoid sending real emails. You can
read the emails you have sent using functions in the
[Swoosh.Adapters.Local.Storage.Memory](Swoosh.Adapters.Local.Storage.Memory.html)
or the [Plug.Swoosh.MailboxPreview](Plug.Swoosh.MailboxPreview.html) plug.

## Example

    # config/config.exs
    config :sample, Sample.Mailer,
      adapter: Swoosh.Adapters.Local

    # lib/sample/mailer.ex
    defmodule Sample.Mailer do
      use Swoosh.Mailer, otp_app: :sample
    end

# `deliver`

# `deliver_many`

# `validate_config`

# `validate_dependency`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
