diff --git a/config/runtime.exs b/config/runtime.exs index a4888ad..5f31d2f 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -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