Skip to content

Email Templates

Customize the emails that Deckyard sends to users.

Deckyard uses templates for all outgoing emails. You can customize these to match your brand and communication style.

Email settings page showing template editor with User Invitation selected, language tabs, and customizable Subject, Greeting, Body, Button Label, and Footer fields

TemplatePurpose
Password ResetSent when users request a password reset
Magic LinkPasswordless login links
User InvitationNew user invitations from admin
Activation ReminderResent invitations for pending users
TemplatePurpose
Collaborator InviteSharing invitations
Comment NotificationAlerts when someone comments
TemplatePurpose
Lead NotificationAlerts for new lead captures
Digest EmailWeekly activity summaries

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 registry

For production deployments, templates can be stored in the database:

  • Editable via the admin panel
  • Supports multiple languages
  • Falls back to file-based templates

Each template includes:

  • Subject - Email subject line
  • HTML Content - Formatted email body
  • Text Content - Plain text fallback

Templates support dynamic variables that are replaced when sending.

VariableDescription
{{recipientName}}Recipient’s display name
{{recipientEmail}}Recipient’s email address
{{senderName}}Sender’s display name (for invites)
{{appName}}Application name
{{appUrl}}Application base URL
VariableDescription
{{resetUrl}}Password reset link
{{expiresIn}}Link expiration time
VariableDescription
{{magicLinkUrl}}Login link
{{expiresIn}}Link expiration time
VariableDescription
{{setupUrl}}Account setup link
{{invitedBy}}Name of person who invited
{{expiresAt}}Invitation expiration date
VariableDescription
{{presentationTitle}}Name of the presentation
{{presentationUrl}}Link to the presentation
{{collaboratorName}}Name of the collaborator
{{permissionLevel}}Permission granted (view/edit)
VariableDescription
{{commenterName}}Name of person who commented
{{commentText}}The comment content
{{slideTitle}}Title of the slide
{{presentationUrl}}Link to the presentation
VariableDescription
{{leadName}}Name from lead form
{{leadEmail}}Email from lead form
{{presentationTitle}}Presentation name
{{submittedAt}}Submission timestamp
VariableDescription
{{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

Templates support multiple languages:

  • en / en-GB - English
  • nl - Dutch
  • de - German
  • fr - French
  • es - Spanish
  • And more…

The email locale is determined by:

  1. Recipient’s language preference (if known)
  2. Default email locale setting
  3. Fallback to English

Configure the default email locale via app settings or environment:

Terminal window
EMAIL_DEFAULT_LOCALE=en

Email template editor with template selector, language tabs, and customizable subject, greeting, body, and button fields

  1. Go to Admin > Email Templates
  2. Select the template to edit
  3. Choose the language
  4. Edit the subject and body
  5. Preview the changes
  6. Save

The admin panel includes a preview feature:

  • See how the email will look
  • Test with sample data
  • Send a test email to yourself

When customizing templates:

Email clients have limited CSS support. Use inline styles:

<p style="color: #333; font-size: 16px;">Hello {{recipientName}}</p>
  • Use table-based layouts for consistency
  • Avoid complex CSS (flexbox, grid)
  • Test in multiple email clients

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>

Include your brand elements:

  • Logo (as hosted image)
  • Brand colors
  • Consistent typography