This commit is contained in:
2024-06-03 13:24:53 -03:00
parent 9b00cedf2e
commit 72b84f720d
6 changed files with 34 additions and 8 deletions

View File

@ -5,15 +5,14 @@ defmodule Derivantes.Accounts.UserNotifier do
# Delivers the email using the application mailer.
defp deliver(recipient, subject, body) do
email =
new()
|> to(recipient)
|> from({"Derivantes", "informedigital@rmitacriocuarto.com.ar"})
|> subject(subject)
|> text_body(body)
new()
|> to(recipient)
|> from({"Derivantes", "informedigital@rmitacriocuarto.com.ar"})
|> subject(subject)
|> text_body(body)
|> Mailer.deliver()
|>IO.inspect()
|> IO.inspect()
# with {:ok, _metadata} <- Mailer.deliver(email) do
# {:ok, email}
# end

View File

@ -0,0 +1,5 @@
defmodule Derivantes.TdsRepo do
use Ecto.Repo,
otp_app: :derivantes,
adapter: Ecto.Adapters.Tds
end