Send Email And Manage Messages

Inbound messages, event notifications, templates, delivery logs, and provider webhooks are kept in separate paths.

On this page

Inbox

Signed-in users can send messages and review replies in /account/messages. Admins triage and reply from /communications/inbox.

Read Inbox

Outbound delivery

System events queue email work, retry failures, and keep a send history.

Read Outbound delivery

Templates

Admins edit application-owned templates. Supabase Auth emails stay in the Supabase template system.

Read Templates

Resend webhook

Delivery status from Resend is received at /api/notifications/webhooks/resend.

Read Resend webhook

Notification events

EventMeaning
lead.newA new lead was captured.
lead.contact.messageA signed-in user sent a contact message.
lead.contact.replyAn admin replied to a user contact message.
team.inviteA staff invite was created. Supabase Auth renders and sends the email.
auth.signup.welcomeA new user should receive a welcome email.
system.alertAn internal system alert needs attention.
operations.stripe.dispute.createdStripe reported a dispute.
billing.invoice.payment_succeededA billing invoice was paid.
billing.invoice.payment_failedA billing invoice payment failed.
billing.subscription.expiring_soonA subscription is near its end date.
billing.subscription.startedA recurring billing relationship started.
billing.subscription.changedA subscription plan or state changed.
billing.subscription.canceledA subscription was scheduled to end or canceled.
billing.subscription.expiredA subscription reached the end of access.
billing.refund.issuedA provider refund was recorded.
billing.order.completedA verified one-time order completed.
billing.credit_pack.grantedA prepaid-credit purchase created or repaired its local grant.
billing.credit_balance.lowA customer's app-local credit balance is low.
billing.usage.threshold_reachedUsage crossed a configured threshold.
billing.usage.summaryA periodic usage summary is ready.

Email template ownership

Template typeOwnerWhere to configure
Authentication and securitySupabase AuthSupabase Dashboard → Authentication → Email Templates and SMTP Settings
Application notificationsShipflash notifications/communications/outbound/templates
Delivery statusResend webhook/api/notifications/webhooks/resend and the outbound send log
  1. 1

    Configure Supabase Auth

    Set the production Site URL, redirect allow list, custom SMTP, and authentication templates before testing invites or recovery.

  2. 2

    Customize application templates

    Use the Communications editor for leads, welcome messages, billing notices, and operational alerts.

  3. 3

    Preview and publish

    Save a draft, verify supported variables, preview the output, send a controlled test, and publish a new version.

  4. 4

    Verify delivery

    Confirm provider webhooks update send status and that authentication links are not rewritten by email tracking.

Customer customization rules

  • Change brand copy, colors, footer details, and button labels without changing event keys or delivery code.
  • Use Supabase Go-template variables only in Supabase Auth templates.
  • Use Shipflash {{variable_name}} placeholders only for application notification events that support them.
  • Keep authentication links, webhook verification, recipient resolution, retries, and deduplication server-owned.
  • Do not add team.invite to the application-managed template set.