Gamend.Accounts.UserNotifier (gamend_core v1.0.1192)

Copy Markdown View Source

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.

Warn a user that their account will be deleted after days of inactivity.

Deliver instructions to log in with a magic link.

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_account_activated(user)

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_confirmation_instructions(user, url)

deliver_inactivity_warning(user, days)

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_login_instructions(user, url)

Deliver instructions to log in with a magic link.

deliver_test_email(recipient)

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_update_email_instructions(user, url)

Deliver instructions to update a user email.