Small helpers used to deliver transactional emails for the Accounts flow (confirmation, magic link, and email change instructions).
These functions are thin wrappers over the configured application Mailer.
Summary
Functions
Deliver a notification that the user's account has been activated by an admin.
Silently returns {:ok, :no_email} if the user has no email address.
Deliver the email that confirms an account: a link, and with code the
same confirmation as six digits to type into the game. A magic link sent to
an account not yet confirmed comes here too, with no code.
Warn a user that their account will be deleted after days of inactivity.
Deliver instructions to log in with a magic link.
A notification the user chose to get by email
(Gamend.Notifications.notify/3). unsubscribe_url ends the body and goes
in the List-Unsubscribe headers too (RFC 8058 one-click), so a mail
client's own "Unsubscribe" button works without opening the site.
Send a simple test email to the given recipient address. Used by admin tools
to verify SMTP configuration and delivery.
Returns the same shape as deliver/3.
Deliver instructions to update a user email.
Functions
Deliver a notification that the user's account has been activated by an admin.
Silently returns {:ok, :no_email} if the user has no email address.
Deliver the email that confirms an account: a link, and with code the
same confirmation as six digits to type into the game. A magic link sent to
an account not yet confirmed comes here too, with no code.
Warn a user that their account will be deleted after days of inactivity.
Sent by Gamend.Accounts.InactivityNotifier ahead of the retention
sweep; signing in resets the clock, so the action the mail asks for is just
"log in".
Deliver instructions to log in with a magic link.
A notification the user chose to get by email
(Gamend.Notifications.notify/3). unsubscribe_url ends the body and goes
in the List-Unsubscribe headers too (RFC 8058 one-click), so a mail
client's own "Unsubscribe" button works without opening the site.
Send a simple test email to the given recipient address. Used by admin tools
to verify SMTP configuration and delivery.
Returns the same shape as deliver/3.
Deliver instructions to update a user email.