Email & Notifications

Transactional emails and notification system.

Overview

DirectoryKit uses Resend for transactional emails and includes a notification management system.

Email types

  • Welcome email on registration
  • Submission confirmation
  • Approval/rejection notifications
  • Admin notifications for new submissions

Webhook notifications

DirectoryKit can send notifications to external services:

  • Discord — via DISCORD_WEBHOOK_URL
  • Custom webhooks — configurable per event type

Configuration

RESEND_API_KEY=re_...
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...

Code

  • Email templates: lib/email.ts
  • Notification manager: lib/notifications.ts
  • Webhook events: lib/webhooks.ts

See Email Config for provider settings.