Skip to content

Commit

Permalink
Change gen smtp to mua
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Dec 26, 2024
1 parent f7dbb13 commit 6053605
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ MAIL_FROM_NAME=Claper
#[email protected]
#SMTP_PASSWORD=xxx
#SMTP_PORT=465
#SMTP_TLS=if_available

#ENABLE_MAILBOX_ROUTE=false
#MAILBOX_USER=admin
Expand Down
12 changes: 3 additions & 9 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,10 @@ config :claper, ClaperWeb.MailboxGuard,
case mail_transport do
"smtp" ->
config :claper, Claper.Mailer,
adapter: Swoosh.Adapters.SMTP,
adapter: Swoosh.Adapters.Mua,
relay: smtp_relay,
username: smtp_username,
password: smtp_password,
ssl: smtp_ssl,
# always, never, if_available
tls: smtp_tls,
# always, never, if_available
auth: smtp_auth,
port: smtp_port
port: smtp_port,
auth: [username: smtp_username, password: smtp_password]

config :swoosh, :api_client, false

Expand Down
5 changes: 3 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,16 @@ defmodule Claper.MixProject do
{:libcluster, "~> 3.3"},
{:porcelain, "~> 2.0"},
{:hackney, "~> 1.18"},
{:gen_smtp, "~> 1.2"},
{:csv, "~> 3.0"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:joken, "~> 2.6.1"},
{:jose, "~> 1.11"},
{:req, "~> 0.5.0"},
{:uuid, "~> 1.1"},
{:oidcc, "~> 3.2"},
{:oban, "~> 2.17"}
{:oban, "~> 2.17"},
{:mua, "~> 0.2.4"},
{:mail, "~> 0.4.3"}
]
end

Expand Down

0 comments on commit 6053605

Please sign in to comment.