# `PhoenixKit.Users.Auth.UserNotifier`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.165/lib/phoenix_kit/users/auth/user_notifier.ex#L1)

User notification system for PhoenixKit authentication workflows.

This module handles email delivery for user authentication and account management workflows,
including account confirmation, password reset, and email change notifications.

## Email Types

- **Confirmation instructions**: Sent during user registration
- **Password reset instructions**: Sent when user requests password reset
- **Email update instructions**: Sent when user changes their email address

## Configuration

Configure your mailer in your application config:

    config :phoenix_kit, PhoenixKit.Mailer,
      adapter: Swoosh.Adapters.SMTP,
      # ... other adapter configuration

## Customization

Override this module in your application to customize email templates
and delivery behavior while maintaining the same function signatures.

# `deliver_confirmation_instructions`

Deliver instructions to confirm account.

Uses the 'register' template from the database if available,
falls back to hardcoded template if not found.

# `deliver_magic_link_registration`

Deliver magic link registration instructions.

Uses the 'magic_link_registration' template from the database if available,
falls back to hardcoded template if not found.

# `deliver_organization_invitation`

Deliver organization invitation email to a new (unregistered) user.

Sends a registration link containing the invitation token so the invitee
can register and automatically join the organization on email confirmation.

# `deliver_reset_password_instructions`

Deliver instructions to reset a user password.

Uses the 'reset_password' template from the database if available,
falls back to hardcoded template if not found.

# `deliver_update_email_instructions`

Deliver instructions to update a user email.

Uses the 'update_email' template from the database if available,
falls back to hardcoded template if not found.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
