fix: remove undefined function

This commit is contained in:
Ivan R. 2024-08-15 12:35:02 +05:00
parent e28cdc803c
commit 088baff66a
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -106,7 +106,7 @@ if config_env() == :prod do
username: System.get_env("SMTP_USERNAME"),
password: System.get_env("SMTP_PASSWORD"),
ssl: System.get_env("SMTP_SSL") == "true",
tls: Comfycamp.Config.get_smtp_tls_config(),
tls: :if_available,
auth: :always,
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.
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