跳到主要内容

Email Templates

Customize system email notifications using Handlebars templates.

Overview

Gauzy uses a template engine for all outgoing emails. Each template is stored in the database and can be customized per tenant and language.

Template Technology

ComponentDescription
MJMLResponsive email markup framework
HandlebarsTemplate variable interpolation

Built-in Templates

TemplateTrigger
WELCOME_USERNew user registration
PASSWORD_RESETPassword reset request
INVITE_EMPLOYEEEmployee invitation sent
INVITE_USERUser invitation sent
TIME_OFF_APPROVEDTime-off request approved
TIME_OFF_REJECTEDTime-off request rejected
INVOICEInvoice sent to contact
ESTIMATEEstimate sent to contact
EMAIL_VERIFICATIONEmail address verification

Customizing Templates

  1. Navigate to SettingsEmail Templates
  2. Select the template to customize
  3. Edit the Handlebars HTML
  4. Preview the rendered output
  5. Save changes

Template Variables

Templates use Handlebars syntax for dynamic content:

<h1>Welcome, {{name}}!</h1>
<p>Your organization <strong>{{organizationName}}</strong> is ready.</p>
<a href="{{host}}/auth/login">Log in now</a>

Common variables:

VariableDescription
{{name}}Recipient name
{{email}}Recipient email
{{organizationName}}Organization name
{{host}}Application host URL
{{token}}Security token

Multi-language Support

Templates support multiple languages — each template can have versions for each locale.

API Reference

See Email Template Endpoints for the API documentation.