This commit is contained in:
+1
-2
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user