Email & Notifications

The boilerplate provides a comprehensive email and notification system that automatically handles user communications, from authentication emails to subscription updates and custom notifications.
Perfect for: Transactional emails, user notifications, authentication flows, subscription communications, and organization invites.

System Overview

The email and notification system consists of three integrated components:
Resend Integration
  • 13 specialized email functions
  • Development/production mode handling
  • Automatic email template rendering
  • Multi-language support
Core service: src/services/email-service.ts

Environment Setup

Required environment variables for the email system:
# Resend Configuration
RESEND_API_KEY="your-resend-api-key"
EMAIL_FROM="noreply@yourdomain.com"

# App Configuration
NEXT_PUBLIC_APP_URL="https://yourdomain.com"

How It Works

The system automatically handles emails through three main flows:
  1. Better Auth Integration - Authentication emails (reset, verification, magic link, OTP)
  2. Notification Service - User notifications with optional email sending
  3. Direct Email Service - Custom transactional emails (subscriptions, invites)

Email & Notifications Topics

Email system ready! Your application has professional transactional emails, smart notifications, and seamless Better Auth integration.
    Email & Notifications | ShipSaaS Documentation | ShipSaaS - Launch your SaaS with AI in days