Add the configuration for the email.
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-04-30 13:03:06 +03:00
parent 72c147cb78
commit a991f63aae
6 changed files with 47 additions and 4 deletions
@@ -13,8 +13,7 @@ defmodule DecentralisedBookIndex.Accounts.User.Senders.SendNewUserConfirmationEm
@impl true
def send(user, token, _) do
new()
# TODO: Replace with your email
|> from({"noreply", "noreply@example.com"})
|> from({"noreply", System.get_env("SYSTEM_EMAIL", "noreply@example.com")})
|> to(to_string(user.email))
|> subject("Confirm your email address")
|> html_body(body(token: token))
@@ -13,8 +13,7 @@ defmodule DecentralisedBookIndex.Accounts.User.Senders.SendPasswordResetEmail do
@impl true
def send(user, token, _) do
new()
# TODO: Replace with your email
|> from({"noreply", "noreply@example.com"})
|> from({"noreply", System.get_env("SYSTEM_EMAIL", "noreply@example.com")})
|> to(to_string(user.email))
|> subject("Reset your password")
|> html_body(body(token: token))