Design email content

Email license requirements

The license tier required for email features depends on the size of the email channels that you use:

  • Email microchannels – available for all license tiers
  • Standard size email channels – require the Advanced license tier

To learn more, see the description of the Channel size property for email channels.

This page is a part of the Content modeling guide which you should follow sequentially from beginning to end.

Xperience by Kentico allows you to prepare emails and edit their content directly in the administration interface. All emails managed by the system are based on content types, which define what data marketers can specify when creating or editing an email.

Types of emails

Only emails with the following purposes can be managed in the Xperience administration. Other system emails need to be created by developers. For example, user password reset and registration emails are described in Administration - Forms authentication.

  • 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. Also used to set up email marketing subscription when a double opt-in link is added to the content.
  • Confirmation – confirmation messages sent to users after they subscribe or unsubscribe from email marketing to provide an immediate feedback.

Design emails using email templates

From a developer’s perspective, emails are strongly typed and stored in dedicated database tables per content type. This allows developers to programatically retrieve data from email content type fields and display it using email templates. Email templates define the overall layout of emails and add fixed content, such as a header or footer. You can reuse a single template for any number of emails. The template content is defined through HTML code and CSS styles. In many cases, the template code can be prepared in an external tool by a designer and then copied into Xperience.

Simple emails are composed only using simple structured content, such as simple text fields (e.g., title) and rich text fields (e.g., email content). To create more elaborate emails that reuse content from the content hub and allow marketers to add links to pages, you need to model email content types to include content item and page fields, see the Reusable content in emails section.

The following diagram shows the structure of a sample email, with the template including pieces of content loaded from individual email fields and linked content items used to display social platform links:

Email template containing individual email fields

Reusable content in emails

As it is explained on the Store content page, it is recommended to store reusable content in the content hub. Any piece of content that could possibly be used in multiple emails (e.g., company icon in a signature, tracking pixel) or in any other channel (e.g., description of an event, article teaser image) should be modeled as a reusable content item and stored in the content hub.

In addition to directly adding content to content type fields of emails, you can also enable marketers to add content items from the content hub to emails by adding a field with the Pages and reusable content data type to the email’s content type.

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 in emails

Linked content items need to be correctly displayed in the email template.

Pages from the content tree of any website channel can also be linked from emails. However, it is only possible to retrieve the URL and content type directly from the page object in the email template. To add more information about the linked page, you can create a reusable content type to display links to website channel pages in your emails:

  1. Create a reusable content type representing page links.
    • Include a title/name field to store the text of the page link.
    • Add a field with the Pages data type to select the target page.
  2. In your email content type, add a field with the Pages and reusable content data type, and allow your page link content type.

In your email templates, use field macros, iteration (loops) and/or indexing to access the linked pages. The linked page objects provide the following macro fields:

  • Url – the absolute URL of the page, containing the main domain name assigned to the given website channel.
  • Type – the code name of the page’s content type.

See Macro syntax and the example below for more details.

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.