Skip to main content

Email Notifications

SalesArck uses Resend for the email paths that matter in the current codebase.

Current Email Flows​

  • points earned notifications
  • redemption code delivery
  • store-operator invitation emails
  • campaign send emails

Implementation Files​

  • apps/api/src/lib/email.ts
  • apps/api/src/lib/resend-from.ts
  • apps/api/src/lib/store-operator-supabase-invite.ts
  • apps/api/src/routes/campaigns.ts
  • apps/api/src/services/ingestion.ts

Behavior​

  • emails are fire-and-forget in the ingestion path
  • sender normalization is handled before delivery
  • failures are logged but do not block wallet credit or ingestion
  • tenant branding is used where available

Operational Notes​

  • Resend is configured with RESEND_API_KEY
  • sender identity comes from RESEND_FROM_EMAIL
  • the API never exposes raw tokens or provider secrets in logs
Written byDhruv Doshi