Creator
Email

Email Templates

All pre-built email templates and how to add your own.

All templates are defined in lib/services/email-service.ts. Each includes both HTML and plain text versions and uses the app name from config/app.config.ts.

Built-in templates

TemplateDescription
OTP verification6-digit OTP code with a 10-minute expiry notice
WelcomeSent when a new user signs up via OAuth
Password resetReset link that expires in 1 hour
Subscription confirmedDisplays the plan name
Subscription canceledShows when access expires
Email change verificationVerification link sent to the new email (24-hour expiry)
Email changed notificationSent to the old email after a change is confirmed
Contact formForwards form submissions with reply-to set to the sender
Payment failedNotifies the user with a link to their subscription page

Adding a new template

Add a new exported function in lib/services/email-service.ts following the same pattern: build HTML and plain text strings, then call sendEmail(). The provider is selected automatically.

On this page

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.