fix: remove undefined function
This commit is contained in:
parent
e28cdc803c
commit
088baff66a
1 changed files with 1 additions and 11 deletions
|
@ -106,7 +106,7 @@ if config_env() == :prod do
|
||||||
username: System.get_env("SMTP_USERNAME"),
|
username: System.get_env("SMTP_USERNAME"),
|
||||||
password: System.get_env("SMTP_PASSWORD"),
|
password: System.get_env("SMTP_PASSWORD"),
|
||||||
ssl: System.get_env("SMTP_SSL") == "true",
|
ssl: System.get_env("SMTP_SSL") == "true",
|
||||||
tls: Comfycamp.Config.get_smtp_tls_config(),
|
tls: :if_available,
|
||||||
auth: :always,
|
auth: :always,
|
||||||
port: Integer.parse(System.get_env("SMTP_PORT") || "465")
|
port: Integer.parse(System.get_env("SMTP_PORT") || "465")
|
||||||
|
|
||||||
|
@ -117,13 +117,3 @@ if config_env() == :prod do
|
||||||
#
|
#
|
||||||
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
|
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
|
||||||
end
|
end
|
||||||
|
|
||||||
defmodule Comfycamp.Config do
|
|
||||||
def get_smtp_tls_config() do
|
|
||||||
case System.get_env("SMTP_TLS") do
|
|
||||||
"always" -> :always
|
|
||||||
"never" -> :never
|
|
||||||
_ -> :if_available
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in a new issue