Email Templates
Customize the emails that Deckyard sends to users.
Overview
Section titled “Overview”Deckyard uses templates for all outgoing emails. You can customize these to match your brand and communication style.

Available Templates
Section titled “Available Templates”Authentication Templates
Section titled “Authentication Templates”| Template | Purpose |
|---|---|
| Password Reset | Sent when users request a password reset |
| Magic Link | Passwordless login links |
| User Invitation | New user invitations from admin |
| Activation Reminder | Resent invitations for pending users |
Collaboration Templates
Section titled “Collaboration Templates”| Template | Purpose |
|---|---|
| Collaborator Invite | Sharing invitations |
| Comment Notification | Alerts when someone comments |
Notification Templates
Section titled “Notification Templates”| Template | Purpose |
|---|---|
| Lead Notification | Alerts for new lead captures |
| Digest Email | Weekly activity summaries |
Customizing Templates
Section titled “Customizing Templates”Template Location
Section titled “Template Location”Email templates are organized by locale in the server:
server/integrations/email-templates/├── auth.js # Authentication emails├── collaboration.js # Collaboration emails├── digest.js # Digest emails├── notifications.js # Notification emails├── helpers.js # Shared helpers└── index.js # Template registryDatabase Templates
Section titled “Database Templates”For production deployments, templates can be stored in the database:
- Editable via the admin panel
- Supports multiple languages
- Falls back to file-based templates
Template Structure
Section titled “Template Structure”Each template includes:
- Subject - Email subject line
- HTML Content - Formatted email body
- Text Content - Plain text fallback
Template Variables
Section titled “Template Variables”Templates support dynamic variables that are replaced when sending.
Common Variables
Section titled “Common Variables”| Variable | Description |
|---|---|
{{recipientName}} | Recipient’s display name |
{{recipientEmail}} | Recipient’s email address |
{{senderName}} | Sender’s display name (for invites) |
{{appName}} | Application name |
{{appUrl}} | Application base URL |
Password Reset Variables
Section titled “Password Reset Variables”| Variable | Description |
|---|---|
{{resetUrl}} | Password reset link |
{{expiresIn}} | Link expiration time |
Magic Link Variables
Section titled “Magic Link Variables”| Variable | Description |
|---|---|
{{magicLinkUrl}} | Login link |
{{expiresIn}} | Link expiration time |
Invitation Variables
Section titled “Invitation Variables”| Variable | Description |
|---|---|
{{setupUrl}} | Account setup link |
{{invitedBy}} | Name of person who invited |
{{expiresAt}} | Invitation expiration date |
Collaboration Variables
Section titled “Collaboration Variables”| Variable | Description |
|---|---|
{{presentationTitle}} | Name of the presentation |
{{presentationUrl}} | Link to the presentation |
{{collaboratorName}} | Name of the collaborator |
{{permissionLevel}} | Permission granted (view/edit) |
Comment Variables
Section titled “Comment Variables”| Variable | Description |
|---|---|
{{commenterName}} | Name of person who commented |
{{commentText}} | The comment content |
{{slideTitle}} | Title of the slide |
{{presentationUrl}} | Link to the presentation |
Lead Variables
Section titled “Lead Variables”| Variable | Description |
|---|---|
{{leadName}} | Name from lead form |
{{leadEmail}} | Email from lead form |
{{presentationTitle}} | Presentation name |
{{submittedAt}} | Submission timestamp |
Digest Variables
Section titled “Digest Variables”| Variable | Description |
|---|---|
{{periodStart}} | Start of digest period |
{{periodEnd}} | End of digest period |
{{totalViews}} | Total views in period |
{{presentations}} | List of presentations with stats |
{{insights}} | AI-generated insights |
Localization
Section titled “Localization”Templates support multiple languages:
Supported Locales
Section titled “Supported Locales”en/en-GB- Englishnl- Dutchde- Germanfr- Frenches- Spanish- And more…
Locale Selection
Section titled “Locale Selection”The email locale is determined by:
- Recipient’s language preference (if known)
- Default email locale setting
- Fallback to English
Setting Default Locale
Section titled “Setting Default Locale”Configure the default email locale via app settings or environment:
EMAIL_DEFAULT_LOCALE=enEditing Templates via Admin Panel
Section titled “Editing Templates via Admin Panel”
- Go to Admin > Email Templates
- Select the template to edit
- Choose the language
- Edit the subject and body
- Preview the changes
- Save
Template Preview
Section titled “Template Preview”The admin panel includes a preview feature:
- See how the email will look
- Test with sample data
- Send a test email to yourself
HTML Email Best Practices
Section titled “HTML Email Best Practices”When customizing templates:
Use Inline Styles
Section titled “Use Inline Styles”Email clients have limited CSS support. Use inline styles:
<p style="color: #333; font-size: 16px;">Hello {{recipientName}}</p>Keep It Simple
Section titled “Keep It Simple”- Use table-based layouts for consistency
- Avoid complex CSS (flexbox, grid)
- Test in multiple email clients
Responsive Design
Section titled “Responsive Design”Use a single-column layout that works on mobile:
<table width="100%" style="max-width: 600px;"> <tr> <td style="padding: 20px;"> <!-- Content --> </td> </tr></table>Branding
Section titled “Branding”Include your brand elements:
- Logo (as hosted image)
- Brand colors
- Consistent typography