Guide

What are modular email templates?

A modular email template is an email template split into self-contained sections, called modules, that can be reused in any order: a header, a hero, a product grid, a promo banner, a footer. Each module is coded and tested once. A new campaign is put together by choosing modules and filling in their content instead of coding a new email. The sections are called email modules, designing this way is modular email design, and a library of them with shared styles and rules is a modular email template system. This guide covers how modules work, how to split an email into them and how to set the system up so marketers build from it. Modular Mail is an email CMS built for that last part: the modules stay in your developer's HTML, marked with data-mm, and the finished emails export to Salesforce Marketing Cloud, Braze, Marketo or any ESP.

Updated 3 November 2026.

One library of sections instead of a new email each time

Most email programmes still treat each campaign as a one-off. A brief lands, a designer lays it out, a developer codes it, and next week the same thing happens with a different headline and a similar shape.

A modular template turns that round. The sections that recur are designed and coded once as modules, each with its own structure, spacing and responsive behaviour, and each with the content fields a campaign needs to fill, such as the hero's image, headline and button, or the promo banner's code. A campaign is then a stack of modules in the order the brief needs.

You'll meet the same idea under different names. HubSpot and Marketo call them modules, Beefree and Stripo call them blocks or rows, and Salesforce Marketing Cloud calls them content blocks. Modular email design is the practice of designing emails this way, and anemail design system is what you have once the modules, their shared styles and the rules for using them are kept together.

What is an email module?

An email module is one self-contained section of an email, coded and tested once, that can be reused in any campaign. A hero, a product grid and a footer are modules. A button isn't, because it never appears on its own.

Three things make a section a module rather than a chunk of HTML. It closes every tag it opens, so it can sit above or below any other module. It carries its own padding and its own responsive behaviour, so it doesn't borrow from its neighbours. And it has a declared set of editable parts, so a campaign can change the headline and the image without touching the layout.

In Litmus's 2026 survey, 78% of teams produce and deploy an email in three days or less. Modules are most of how the quick ones do it: the second campaign built from a library is assembled, not coded.

The modules most programmes build first

Ten modules cover most of what a retail or B2B programme sends. Add more when a brief needs one.

Header

Logo and a short line of links. Usually fixed, with no editable fields.

Hero

An image, a headline, a line of body copy and a button.

Text

A headline and a paragraph, for an intro or an editorial note.

Image and text

A picture beside copy, with a left or right layout option.

Product grid

Two, three or four products, each with an image, name, price and link.

Promo banner

An offer line and a code, in one of the approved colours.

Quote

A customer's words and their name.

Social row

Icons linking to your channels, fixed once for the brand.

Spacer or divider

A fixed gap or rule between sections.

Footer

Address, unsubscribe and legal lines, fixed.

How to build a modular email template system

Seven steps, in the order most teams take them. The first six give you a folder of tested HTML modules; the seventh is what turns the folder into a system marketers can build from.

  1. Audit your last twenty campaignsLay them out side by side and mark the sections that repeat. Most teams find the same eight to twelve shapes in different combinations. Write the list down: it's your module inventory.
  2. Write down the rules every module followsFonts and sizes, colours, spacing, button styles, image sizes and the email's width. If brand guidelines exist, start there and adapt them for email.
  3. Cut the template into sectionsTake your best-performing template and split it at the section boundaries. Keep modules at section level, such as a hero or a product grid.
  4. Make each module self-containedInline its styles and give it its own top and bottom padding, so it doesn't rely on the module above or below. It should be responsive on its own too. The test: paste a single module into an empty email and it should still render properly.
  5. Decide what's editable in each oneFor each module, list the content a campaign changes (a headline, an image, a link) and the choices a marketer should have (a layout, a colour). Everything else stays fixed.
  6. Test each module once, then build a campaignCheck every module in Gmail, Apple Mail and Outlook before it joins the library. Then assemble your first campaign from the library, send a test and export it to your ESP.
  7. Put the library where marketers can build from itA folder of HTML only works for people who edit HTML. To let the rest of the team build campaigns, the modules need a tool that shows each one's editable parts as fields and keeps everything else locked. In Modular Mail, your developer adds a data-mm attribute to each editable element, sets up the fields in the form builder and publishes the template. From then on marketers add modules, drag them into order, fill in the fields and export the HTML to the ESP. Nothing in the modules is rewritten.

Where the modules live

For a developer, or a small team comfortable in HTML, a shared repository with one file per module is enough. A campaign is assembled by copying the modules it needs into one file, and the library is maintained like any other code.

That breaks down when people who don't write HTML need to build campaigns, or when several people build at once and nobody is sure which version of the footer is current. This is the point at which teams put anemail CMS over the library: the modules stay in code, and the campaign work happens in fields.

In an email CMS, a module is plain HTML with its editable parts marked

Your template stays standard HTML. A data-mm attribute marks the text, images and links a campaign can change, and the form builder sets each field's label, type and limits. Anything without one stays exactly as written.

modules/promo-banner.html
<table class="promo">
  <tr>
    <td data-mm="headline">
      30% off ends tonight
    </td>
  </tr>
  <tr>
    <td data-mm="code">FLASH30</td>
  </tr>
  <!-- colours, spacing and type stay as written -->
</table>

Modular templates compared with one-off emails

One-off emails compared with modular templates
One-off emailsModular templates
Starting pointA blank file or last week's HTMLA library of tested modules
Who builds each campaignA designer and a developerThe marketer, by filling in fields
What keeps the design consistentCare, and a brand PDFThe modules themselves
TestingEvery campaign, in fullEach module once, then a test send per campaign
Changing the designEdit every templateEdit the module, and the next campaign picks it up
Best forOccasional one-off designsTeams that send often from the same sections

Teams that get the most from modular templates

Modular templates, with an editor for the whole team on top

Modular Mail is an email CMS built for this way of working. Your modules stay in your HTML and your team builds campaigns from them. It doesn't send campaigns, keep version history or push emails into your ESP: you export the HTML and the ESP does the rest.

Your modules, in your HTML

Your developer marks the sections you already have, so nothing is rebuilt in someone else's block format.

Reorder by dragging

Add the modules the template allows, drag them into order and remove the ones you don't need.

Rules where a field needs them

Character limits, required fields, and approved colour and layout options.

Export to any ESP

Copy or download the finished HTML for Klaviyo, Braze, Salesforce Marketing Cloud or wherever you send from.

Questions about modular email templates

Something else? Ask us on a demo

What is a modular email template?

A modular email template is an email template split into self-contained sections, called modules, that can be reused in any order. Each module is coded and tested once, and a campaign is built by choosing modules and filling in their content.

What is modular email design?

Modular email design is the practice of designing emails as a set of reusable sections rather than as one-off layouts. The modules, the styles they share and the rules for using them together make up an email design system. What is an email design system?

What is an email module?

One self-contained section of an email, such as a hero or a product grid, coded and tested once and reused in any campaign. Each module has its own layout, its own spacing and a declared set of editable parts.

What's the difference between a module and a content block?

Mostly the name, and which tool you're in. The useful distinction is between a module, a whole section with its own fields and rules, and a block in a builder, which is styled in the builder each time.

How many modules do we need?

Eight to twelve covers most programmes, and the ten above are a reasonable first list. Cut the ones your audit didn't find, because a module nobody uses still has to be maintained.

How do we build a modular email template system?

Audit recent sends for the sections that repeat, write down the shared styles, cut your best template into self-contained modules, decide what's editable in each, test each one once, then put the library in a tool that shows the editable parts as fields. The seven steps on this page walk through it, and Modular Mail is built for the last one. The seven steps

Do modular templates work with Klaviyo, Braze or Salesforce Marketing Cloud?

Yes. A module is HTML, and a finished campaign exports as HTML that any of those platforms, and any other ESP, will accept. The ESP still sends, segments and reports.

Which platforms let a team build modular templates with reusable content blocks?

Three kinds. Some ESP editors support modules in their own format, HubSpot and Marketo among them. Email builders such as Stripo and Beefree build blocks in the builder's format. An email CMS such as Modular Mail keeps the modules in your own HTML, gives marketers fields to fill in and exports to any ESP. What is an email CMS?

Do we need MJML or a framework to build modules?

No. MJML and Maizzle are good ways for a developer to write the HTML, and their output works as a module like any other HTML. The system is the library and its rules, not the tool that wrote the code.

How long does it take to set up modular templates?

If the HTML exists, splitting it into modules and marking the editable parts is usually days rather than weeks. Most teams using Modular Mail are live within one to two weeks, including their first campaign. Open a free template in the editor

Can a marketer change the layout of a module?

Only in the ways the module allows: a product grid might offer two, three or four across, a hero might offer image left or right. Anything outside those options is a new module, which your developer, your agency or our team adds to the library.

See your own email in Modular Mail.

Send us a recent campaign. We'll rebuild it before the call, so you can see exactly how your team would work.