Email Templates

Customizable email templates for all authentication flows.

Stage:
General Availability
Available on self-hosted:
Yes

Email Templates allow you to customize all authentication emails using Go Templates with HTML support. Edit via the dashboard, use custom SMTP providers, and create branded email experiences for your users.

Key benefits

  1. Complete customization: HTML emails with Go template syntax.
  2. Custom SMTP support: Use your preferred email provider.
  3. Multiple template types: Authentication emails and security notifications.
  4. Variable support: Access user data, confirmation URLs, OTP codes, and more.
  5. Conditional rendering: Use Go template logic for dynamic content.
  6. Server-side verification: Custom confirmation pages with TokenHash.

Template types

Authentication: Confirm Signup, Invite User, Magic Link, Change Email Address, Reset Password. Security Notifications: Password Changed, Email Changed, Phone Changed, Identity Linked/Unlinked, MFA Factor Enrolled/Unenrolled.

Available variables

{{ .ConfirmationURL }}, {{ .Token }}, {{ .TokenHash }}, {{ .SiteURL }}, {{ .Email }}, {{ .NewEmail }}, {{ .OldEmail }}, {{ .Data }} for user metadata.

Email Templates are valuable for:

  • Branded authentication experiences
  • Custom confirmation flows
  • Security notification customization
  • Integration with React Email and Resend
  • Protection against email link prefetching

Best practices

Use custom SMTP for production. Disable email tracking in providers. Use OTP for providers that prefetch links. Keep authentication emails simple and separate from marketing.

Email Templates provide complete control over your authentication email experience.

Read Documentation
Share

Build in a weekend, scale to millions