View Source Swoosh.Adapters.ProtonBridge (Swoosh v1.11.4)
An adapter that sends email using the local Protonmail Bridge.
This is a very thin wrapper around the SMTP adapter.
Underneath this adapter uses the gen_smtp library, add it to your mix.exs file.
Example
# mix.exs
def deps do
[
{:swoosh, "~> 1.3"},
{:gen_smtp, "~> 1.1"}
]
end
# config/config.exs
config :sample, Sample.Mailer,
adapter: Swoosh.Adapters.ProtonBridge,
username: "tonystark",
password: "ilovepepperpotts",
# lib/sample/mailer.ex
defmodule Sample.Mailer do
use Swoosh.Mailer, otp_app: :sample
end
Summary
Functions
Callback implementation for Swoosh.Adapter.validate_config/1
.
Callback implementation for Swoosh.Adapter.validate_dependency/0
.
Functions
Callback implementation for Swoosh.Adapter.validate_config/1
.
Callback implementation for Swoosh.Adapter.validate_dependency/0
.