Sendio.Swoosh.Adapter (sendio v1.1.0)
Adapter module to configure Swoosh to send emails via send.io.
Using this adapter, we can configure a new Phoenix application to send mail
via send.io by default. If the project generated authentication with phx.gen.auth,
then all auth communication will work with send.io out of the box.
To configure your Mailer, specify the adapter and a send.io API key:
config :my_app, MyApp.Mailer,
adapter: Sendio.Swoosh.Adapter,
api_key: "mx_1234567"If you're configuring your app for production, configure your adapter in prod.exs, and
your API key from the environment in runtime.exs:
# prod.exs
config :my_app, MyApp.Mailer, adapter: Sendio.Swoosh.Adapter# runtime.exs
config :my_app, MyApp.Mailer, api_key: "mx_1234567"And just like that, you should be all set to send emails with send.io!