How do I edit email templates?
This guide covers edit email templates.
On this page
Jump to any section using the links below
When you need to update the content, layout, styling, or logic in your Hubhus email templates, the best place to do it is in the Hubhus Email Editor, because it supports real-data preview, placeholder search, HTML components, and correct @if-logic evaluation.
This article covers:
Where email templates are created and edited
How to modify template content
Using placeholders and dynamic logic
Working with layouts
Testing templates before sending
Conditional send requirements
Spam-protection rules
Common HTML email issues
Where to edit email templates
Table of Contents
- Where to edit email templates
- Editing template fields and configuration
- Using the Email Editor
- Using @if / @else logic (correct Hubhus syntax)
- Working with layouts
- Dynamic content with placeholders
- Testing templates
- Conditional sending requirements
- Spam protection rules
- Common HTML issues in email clients
- Summary
- ✔ UseCampaign → Settings → Emails
- ✔ Use the Editor for correct previews and logic
- ✔ Insert placeholders usingCTRL+K / CMD+K
- ✔ Use Hubhus-style @if logic (not standard code syntax)
- ✔ Apply or change layout when needed
- ✔ Configure conditional sending rules and spam protection
- ✔ Test with real leads before activating the template
1. Campaign settings → Emails (recommended)
This is the main and preferred location.
Path:
Campaign Settings → Emails → New Email Template or Edit
Advantages of editing here:
✔ Live preview with real lead data
✔ Placeholder search using CTRL+K / CMD+K
✔ Correct evaluation of @if/@else logic
✔ Access to layouts, HTML components, and CSS
✔ Full visibility of spam rules, sender info, and requirements
2. Automations / Action Listeners (not recommended for editing)
You can create a template from an automation—but editing inside automation view is limited.
We recommend:
Create in automation → then open it in the Email Editor for final editing and testing.
Editing template fields and configuration
Each template supports configuration of:
Recipient fields
To
CC
BCC
From name
From email
Reply-to email
All of these allow dynamic placeholders, e.g.:
With conditional fallback logic such as:
Using the Email Editor
The Editor gives you all the tools needed for advanced templates.
Search placeholders instantly (CTRL+K / CMD+K)
This opens the placeholder modal where you can find:
Lead placeholders
Event placeholders
Select field values
Booking form placeholders
Assigned person & brand placeholders
HTML components
Page links (
@page[...])Custom fields (API names)
Checklists
Relations
Files
JSON/data examples
Loops, variables, and advanced examples
You can search with natural language:
“lead name”, “address”, “event date”, “signature”, “assigned person”, “offer”, “checklist”, etc.
Using @if / @else logic (correct Hubhus syntax)
Basic if
If / else
Comparison operators
Supported:== != ~= >= <= > <
Contains (case-insensitive)
Logical operators
⚠ Parenthesis are NOT supported.|| is evaluated before &&.
Working with layouts
Templates can optionally use a parent layout, which defines:
Branding
Header / footer
Section structure
Styles
Wrapper layout
You only write the core content; the layout wraps it automatically.
Path:
Campaign Settings → Layouts
Dynamic content with placeholders
Placeholders inject dynamic lead/event data.
Examples:
Use CTRL+K / CMD+K to find them.
Testing templates
The Email Editor supports:
✔ Preview with real leads
✔ Switching the preview lead
✔ Testing @if/@else logic
✔ Rendering HTML components
✔ Sending a test email
✔ Viewing final output exactly as the customer sees it
This eliminates guesswork.
Conditional sending requirements
Templates can be restricted to send only if certain conditions are true.
Two modes:
Always allowed to be sent
Conditionally allowed to be sent
Example requirement:
If the expression evaluates to false / empty / 0 / false / off / nej / no,
→ The email will NOT send.
Spam protection rules
Each template includes configurable sending limits:
Max emails per lead
Max emails per email address
Blacklist campaigns
Whitelist campaigns
Frequency limit (e.g., max 1 per hour)
Unsubscribe handling
If emails aren’t sending, always check these rules.
Common HTML issues in email clients
Email HTML is old-school. Follow these best practices:
✔ Use <table> based layout
✔ Keep styles inline
✔ Use absolute URLs for images
✔ Use Hubhus HTML components when possible
✔ Close all tags
✔ Avoid advanced CSS, scripts, flexbox, grid, external stylesheets
Summary
To edit email templates correctly:
✔ Use Campaign → Settings → Emails
✔ Use the Editor for correct previews and logic
✔ Insert placeholders using CTRL+K / CMD+K
✔ Use Hubhus-style @if logic (not standard code syntax)
✔ Apply or change layout when needed
✔ Configure conditional sending rules and spam protection
✔ Test with real leads before activating the template
? Common searches
email setup • send email • email template • automated email
? Also known as
message • notification • mail
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article