# `Swoosh.Adapters.OhMySmtp`
[🔗](https://github.com/swoosh/swoosh/blob/v1.26.2/lib/swoosh/adapters/oh_my_smtp.ex#L1)

**Deprecated - use MailPace now**

> Moving from OhMySMTP to MailPace
> https://docs.mailpace.com/guide/moving_from_ohmysmtp

An adapter that sends email using the OhMySMTP API.

For reference: [OhMySMTP API docs](https://docs.ohmysmtp.com/reference/overview)

**This adapter requires an API Client.** Swoosh comes with Hackney, Finch and Req out of the box.
See the [installation section](https://hexdocs.pm/swoosh/Swoosh.html#module-installation)
for details.

## Example

    # config/config.exs
    config :sample, Sample.Mailer,
      adapter: Swoosh.Adapters.OhMySmtp,
      api_key: "my-api-key"

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

# `deliver`

> This function is deprecated. use Swoosh.Adapter.MailPace.deliver/2 instead.

# `validate_config`

# `validate_dependency`

---

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