Skip to content

Commit a090459

Browse files
committed
Move email to SendGrid.
1 parent 088c766 commit a090459

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

config/config.exs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,8 @@ config :kaffy,
5656
# For production it's recommended to configure a different adapter
5757
# at the `config/runtime.exs`. We use the SMTP adapter for development.
5858
config :sentrypeer, Sentrypeer.Mailer,
59-
adapter: Swoosh.Adapters.SMTP,
60-
relay: System.get_env("SENTRYPEER_SMTP_RELAY"),
61-
username: System.get_env("SENTRYPEER_SMTP_USERNAME"),
62-
password: System.get_env("SENTRYPEER_SMTP_PASSWORD"),
63-
tls: :always,
64-
auth: :always,
65-
port: System.get_env("SENTRYPEER_SMTP_PORT"),
66-
retries: 2,
67-
no_mx_lookups: false
59+
adapter: Swoosh.Adapters.Sendgrid,
60+
api_key: System.get_env("SENTRYPEER_SENDGRID_API_KEY")
6861

6962
# Configure esbuild (the version is required)
7063
config :esbuild,

config/dev.exs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,4 @@ config :phoenix, :stacktrace_depth, 20
8989
# Initialize plugs at runtime for faster development compilation
9090
config :phoenix, :plug_init_mode, :runtime
9191

92-
# Disable swoosh api client as it is only required for production adapters.
93-
config :swoosh, :api_client, false
92+
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Sentrypeer.Finch

0 commit comments

Comments
 (0)