nuevo
This commit is contained in:
@ -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
|
||||
|
5
lib/derivantes/tdsrepo.ex
Normal file
5
lib/derivantes/tdsrepo.ex
Normal file
@ -0,0 +1,5 @@
|
||||
defmodule Derivantes.TdsRepo do
|
||||
use Ecto.Repo,
|
||||
otp_app: :derivantes,
|
||||
adapter: Ecto.Adapters.Tds
|
||||
end
|
Reference in New Issue
Block a user