Phoenix
Send emails using Phoenix and Mailtrap
# config/config.exs
config :sample, Sample.Mailer,
adapter: Swoosh.Adapters.Mailtrap,
api_key: "my-api-key"
# lib/sample/mailer.ex
defmodule Sample.Mailer do
use Swoosh.Mailer, otp_app: :sample
endLast updated
Was this helpful?

