How do I edit email templates?

Modified on Thu, 4 Dec at 11:32 AM

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

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


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.:

%lead_email% %assigned_person_email% %brand_contact_email%

With conditional fallback logic such as:

@if(%assigned_person_email%){ %assigned_person_email% }@else{ %brand_contact_email% }@endif

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(%assigned_person_name%){ Your consultant: %assigned_person_name% }@endif

If / else

@if(%lead_postal_code% == 2000){ Special information for your area! }@else{ General information… }@endif

Comparison operators

Supported:
== != ~= >= <= > <

@if( {{post-nr}} >= 6000 ){ We cover your region. }@endif

Contains (case-insensitive)

@if(%lead_email% ~= @gmail.com){ You are using a Gmail address… }@endif

Logical operators

@if(%lead_type% == business || %lead_type% == vip){ Business/VIP info block }@endif

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:

%lead_firstname% %lead_email% %event_datetime% @select[select_customer-type] %assigned_person_phone%

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(%lead_postal_code% == 2000){1}@endif

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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article