Module: Content modeling guide
21 of 28 Pages
Design email content
Types of emails
Xperience by Kentico allows you to prepare emails and edit their content directly in the administration interface. All emails within the administration interface that editors manage are based on a content type and have a specific email purpose.
Xperience supports the following types of emails:
- Regular – emails sent as part of a regular series to subscribed recipients. These emails serve to build a reliable communication channel with an engaged audience. See Send regular emails to subscribers for detailed information and instructions.
- Form autoresponder – sent automatically to visitors after they submit a form. These emails also confirm email marketing subscription if their content includes double opt-in link the content.
- Confirmation – confirmation messages sent to users after they subscribe or unsubscribe from email marketing to provide immediate feedback.
- Automation – sent out by an automation process. These emails cannot be sent manually.
- Notification – represent emails sent to administration users about system events, or to customers about order-related events.
Other system emails that are not part of Xperience administration need to be created by developers and sent programmatically. For example, user password reset and registration emails are described in Administration - Forms authentication.
Design emails using email templates
Email templates define the overall layout of emails and add fixed content, such as a header or footer. Editors can reuse a single template for multiple emails.
From a developer’s perspective, emails are strongly typed and stored in dedicated database tables according to their content type. Developers can programmatically retrieve data from the email content type fields and display it using any number of different email templates. They define the template content using the MJML markup or standard HTML, and CSS. Each email template is tied to specific allowed email content types to ensure Xperience correctly displays the email data.
A common workflow for creating templates is for a designer to prepare and optimize the template code using an external tool. Developers then transfer and map the template code onto Xperience artifacts, depending on the email’s purpose.
Email Builder and structured emails
The content model for emails depends on the approach you select when you define the email content type. This approach influences how editors compose emails in their email channels.
The AIRA AI assistant is currently available only for structured data fields when editing emails in Content view mode. You can enable it for the email Subject and Preview text fields, as well as for other structured content fields within the email.
At this time, AIRA is not supported in the Email Builder, so it cannot assist with editing content directly within the builder’s drag-and-drop interface.
Email Builder
Similar to page builder, editors create emails visually in a user-friendly interface from components that developers prepared. They arrange email widgets inside email sections on top of the email template.
Developers build widgets, sections, and the overall email template which they register against content types. From code perspective, sections and widgets are Razor components that layout and display the email content with the MJLM or standard HTML markup, depending on the implementation.
Email Builder is currently supported for emails with the Regular, Automation, or Order status change purposes.
Email widgets and sections differ technically from the Page Builder widgets and sections. Although developers can reuse similar visual designs to keep emails and web pages consistent with the brand, they need to redevelop email components from scratch to fit the limited set of features supported by email clients.
Structured emails
Editors fill in predefined form fields in the Content view mode, such as Hero image, Intro text, or Featured articles.
Each of the fields defines email content or a block of content within the email, and developers control how this content looks through the email template. The template retrieves data from the content type fields and displays it using HTML and CSS. Editors cannot rearrange the different template blocks, but they can reorder the content within the section if the email content type reuses content from a website channel or Content hub. Developers can define the email template in the Email templates application within the administration UI using email template macros, or create an Email Builder template in the project codebase with no editable areas.
Hybrid emails
To benefit from Email Builder and structured emails, you can define email content types that combine both. Hybrid emails allow editors to use the drag-n-drop interface from Email Builder, while also displaying structured data from your content types.
This combinations allows developers and marketers to balance design flexibility with consistency. Editors can build their one-off email content in a user-friendly interface, while developers can still ensure consistency in the display of all required data. Meanwhile, both widgets and content types can reuse existing content through the Combined content selector.
Define email content types
Before you start building email content types, verify your marketing team’s plans for writing and managing email content. You want to make editors efficient and provide flexible email editing experience that is consistent with the rest of the content model.
Check the business requirements
When you define email content types, identify emails your team will send, including newsletters, emails targeted at specific contacts groups, product updates, order updates, or other transactional messages. Each type may need its own structure, visual layout, and approval workflow.
Validate editor roles and workflows
Discuss with stakeholders who create and maintain the emails. Are marketers responsible for editing content directly, or do developers prepare most of the structure? The answer determines how much flexibility you should allow through Email Builder, structured data fields, or a combination of both.
Review existing and planned digital channels
Align the email content model with the broader content modeling approach you use across websites and Content hub. Whether your project follows a page-based or atomic (content item–based) model, aim for a unified editing experience. Editors should feel comfortable while editing emails. They should be working with familiar content types, follow the same naming conventions, and rely on similar field behaviors, such as validation.
Aim for scalability
Plan email content types for reuse and future expansion. For instance, if the same “Featured article” or “Hero image” blocks appear with the same content on both the website and in emails, define them as reusable content types, and provide a way to override stored values in each channel. This will reduce content duplication and keep digital marketing assets consistent across the ecosystem.
Channel-specific content vs content reusability
Depending on the project requirements, you will need to create different types of emails. Before we dive into more complex types, consider creating a simple email composed only with structured content. For example, use simple text field for values like title and rich text field for email body, and display their values in a simple email template. Editors can use this Simple email to quickly craft email and focus on content. If you want to add complexity and allow for flexible layout and design, create this email as a hybrid one with Email Builder containing at least one section and a Text widget. Editors will be able to quickly craft message and provide additional content if necessary.
The following image shows the structure of a sample email. The template includes content loaded from email content type fields and linked content items used to display social platform links:
Reusable content in emails
Editors can speed up how they compose emails by reusing existing content. They can build their emails from any structured content stored as pages in a any website channel, or as reusable items in the Content hub.
We recommend storing content in a structured way to support content reusability and improve governance.
To sum up the principle: You should model any piece of content that could possibly be used in multiple emails (e.g., company icon in a signature, social links with icons, company logo) or in any other channel (e.g., event description, article teaser with a title, summary and teaser image) in a reusable manner. Use structured content type fields in Content hub or a website channel to store it.
Link content items strategically
To reference reusable content from your email content type, add a field with the Pages and reusable content data type in the Content types application. The following example shows an email field that enables marketers to add links to various social media platforms at the end of emails.
Linked content items need to be correctly displayed in the email template.
Link pages
Pages from the content tree of any website channel can also be linked from emails. You can either define widgets in which editors select the referenced content or use email Content view mode. Developers can retrieve the structured data and the page’s URL and display the data accordingly.
Example
Content types:
Email (Emails) |
Linked article (Reusable content) |
Article (Pages) |
||
Field name |
Data type |
Field name |
Data type |
Field name |
EmailContent |
Rich text (HTML) |
ArticleTitle |
Text |
… |
LinkedArticles |
Pages and reusable content (Linked article) |
ArticlePage |
Pages |
… |
For more information about displaying content items and pages in email templates, see the Email templates page.
Recommendations for modeling emails
You can follow these recommended practices to define email content types that help marketers stay on brand and provide the flexibility they need to create compelling emails.
Leverage structured content and Email builder
Many projects benefit from combining both structured and builder-based approaches to email design. This hybrid model allows teams to balance flexibility for marketers with consistency that brand managers require.
To design effective email content types:
- Keep critical brand elements, such as the logo, email header, footer, and company’s main social links, as structured content. These assets rarely change and marketers need to adhere to approved design and compliance standards. If the project requires editors to vary between different branding requirements, e.g., different headers and logo sizes per email purpose, you have different options to support this requirement. You might create an Email brand defaults content type. Editors will then store possible branding variants into dedicated content items and then select the one they need when they create the email. Or, you can create an email template for each variant and hardcode these brand elements into the template’s code.
- For the main body of the email, allow flexibility through the Email Builder, where editors can add and arrange widgets to suit each campaign’s message and layout.
- Whenever possible, allow editors to reuse content items across both structured and builder-based emails. This ensures that key assets like article teasers, product descriptions, or event details remain consistent across all channels.
- Developers should define widgets and sections with properties that allow editors change the email design, but still stay aligned with the organization’s design system.
- During content modeling, establish clear governance guidelines that describe when to use the different email content types you have provided. Clear rules help teams maintain consistency and avoid duplication of effort.
This combined strategy keeps emails on brand and gives editors the creative freedom they need to deliver engaging email content.
Define override fields for reusable email content
Building emails with reusable content doesn’t mean editors are locked into always using the same values. They often need to fine-tune details to suit a specific message. For example, when reusing a product teaser or article summary from the website, editors might want to adapt the headline or description to better match the email’s tone and tailor it for a specific contact group.
To support this capability, define email content fields or widget properties that allow editors to override selected values in the email without altering the source content. We recommend using structured fields or Email Builder widget properties editors will use to, for example, create an alternative title, select an image, or adjust a call-to-action text tailored to email experience.
This approach keeps shared content unified across the digital ecosystem, while also giving editors enough flexibility to tailor each email for its audience and purpose.
Use dedicated content type to define email defaults
Emails typically contain header logo and social links. If you don’t want to force editors to recreate this content for every email, you can store this information directly in the template. This will, however, limit their flexibility, and your developer might need to, from time to time, adjust the email template.
To avoid additional developer time, consider creating a dedicated reusable content type to store these values, along with CSS definitions and other email design-related assets. Editors will select the appropriate email configuration to answer their needs.
We do not recommend creating dedicated fields to control email layout, such as Show as a left column, Align right, or Additional padding, in the email content type. If you want editors to influence the layout of their emails, use the Email Builder instead.