We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c3166b commit a140093Copy full SHA for a140093
config/runtime.exs
@@ -114,7 +114,7 @@ if config_env() == :prod do
114
end)
115
end
116
117
- config(:keila, Keila.Mailer, config)
+ config(:keila, Keila.Auth.Emails, config)
118
rescue
119
e ->
120
exit_from_exception.(e, """
lib/keila/auth/emails.ex
@@ -5,9 +5,11 @@ defmodule Keila.Auth.Emails do
5
6
@spec send!(atom(), map()) :: term() | no_return()
7
def send!(email, params) do
8
+ config = Application.get_env(:keila, __MODULE__, [])
9
+
10
email
11
|> build(params)
- |> Keila.Mailer.deliver!()
12
+ |> Keila.Mailer.deliver!(config)
13
14
15
@spec build(:activate, %{url: String.t(), user: Keila.Auth.User.t()}) :: term() | no_return()
0 commit comments