PhoenixKitWeb.Live.Settings.EmailSending (phoenix_kit v1.7.207)

Copy Markdown View Source

Core "Email Sending" admin settings page (/admin/settings/email-sending).

Covers what core owns about outbound email: sender identity, which transport is actually in effect (static app-config mailer vs. a connected Integrations provider), the operator's choice of default send integration, and a test-send action. Send Profiles (per-account sender identity, rate limits, provider-specific options) live one level down at /admin/settings/email-sending/profiles.

Path note

This page is deliberately at email-sending, not emails — the optional phoenix_kit_emails module registers its own routable "Emails" settings tab at /admin/settings/emails (via its settings_tabs/0). The two pages coexist under different paths for now; a later change (Stage 1 task A5) will collapse them into one.

Module-contributed sections

Modules can extend this page without the core page knowing anything about them, via PhoenixKit.Module.email_settings_sections/0 — see PhoenixKit.ModuleRegistry.all_email_settings_sections/0. Each section is a module-owned Phoenix.LiveComponent, rendered below the core sections, gated by its declared permission (or shown to any admin when the permission is nil).

Summary

Functions

handle_event(binary, map, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

handle_params(params, url, socket)

Callback implementation for Phoenix.LiveView.handle_params/3.

mount(params, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.