configure mail
This commit is contained in:
@@ -118,4 +118,15 @@ if config_env() == :prod do
|
||||
# config :swoosh, :api_client, Swoosh.ApiClient.Req
|
||||
#
|
||||
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
|
||||
|
||||
config :firehose, Firehose.Mailer,
|
||||
adapter: Swoosh.Adapters.SMTP,
|
||||
server: System.get_env("SMTP_HOST"),
|
||||
port: String.to_integer(System.get_env("SMTP_PORT") || "587"),
|
||||
username: System.get_env("SMTP_USERNAME"),
|
||||
password: System.get_env("SMTP_PASSWORD"),
|
||||
ssl: System.get_env("SMTP_SSL") in ~w(true 1),
|
||||
tls: System.get_env("SMTP_TLS") in ~w(true 1) || System.get_env("SMTP_SSL") not in ~w(true 1),
|
||||
retries: 2,
|
||||
no_dns_lookup: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user