summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.exs2
-rw-r--r--config/runtime.exs10
2 files changed, 11 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs
index 0ffcbbd..8be792c 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -27,7 +27,7 @@ config :aggiedit, AggieditWeb.Endpoint,
config :aggiedit, Aggiedit.Mailer, adapter: Swoosh.Adapters.Local
# Swoosh API client is needed for adapters other than SMTP.
-config :swoosh, :api_client, false
+# config :swoosh, :api_client, false
# Configure esbuild (the version is required)
config :esbuild,
diff --git a/config/runtime.exs b/config/runtime.exs
index 50fa43f..84b1f03 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -32,6 +32,16 @@ if config_env() == :prod do
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
socket_options: maybe_ipv6
+ config :aggiedit, Aggiedit.Mailer,
+ adapter: Swoosh.Adapters.SMTP,
+ relay: System.get_env("SMTP_SERVER"),
+ port: 587,
+ username: System.get_env("CONTACT_EMAIL"),
+ password: System.get_env("EMAIL_PASSWORD"),
+ tls: :always,
+ auth: :always,
+ no_mx_lookups: true
+
# The secret key base is used to sign/encrypt cookies and other secrets.
# A default value is used in config/dev.exs and config/test.exs but you
# want to use a different value for prod and you most likely don't want