---
title: Personalize emails
related:
  - https://docs.kentico.com/documentation/business-users/email-queue.md
  - https://docs.kentico.com/documentation/developers-and-admins/configuration/email-configuration.md
  - https://docs.kentico.com/documentation/business-users/digital-marketing/emails/track-email-statistics.md
  - https://docs.kentico.com/documentation/business-users/digital-marketing/emails/create-emails-in-email-builder.md
  - https://docs.kentico.com/documentation/business-users/digital-marketing/emails/send-regular-emails-to-subscribers.md
  - https://docs.kentico.com/documentation/business-users/digital-marketing/forms/create-and-edit-forms.md
  - https://docs.kentico.com/documentation/business-users/content-locking.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

### Personalize emails with dynamic text

Emails allow you to include personalized pieces of text based on information known about the recipient or data relevant to the email's context.

You can add dynamic text while editing emails in an email channel application. Dynamic text is supported for text fields in **Content** view mode (fields that use a _Text input_, _Text area_ or _Rich text editor_ form component in the [content type](https://docs.kentico.com/documentation/developers-and-admins/development/content-types.md) configuration), and also in the **Plain text** dialog.

> **Note:** **Dynamic text not supported in Email Builder**
>
> Dynamic text is not supported for the content of rich text editors or component properties in [Email Builder view mode](https://docs.kentico.com/modules/work-with-emails/create-emails-in-email-builder.md).

Add dynamic text by entering or copying placeholders into the appropriate location within email fields:

- For most email [purposes](https://docs.kentico.com/modules/work-with-emails/introduction-to-emails.md#email-purposes), the following placeholders are available:
  - **{{FirstName}}** – the recipient's first name
  - **{{LastName}}** – the recipient's last name
  - **{{Email}}** – the recipient's email address
- For _Order status change_ emails, the available placeholders are different, and instead allow you to access the data of the given customer's [order](https://docs.kentico.com/documentation/business-users/manage-commerce-stores.md).

Optionally, you can add a backup text to any placeholder in the following format: **{{FirstName, backup}}**. The backup text is displayed when the system doesn't have the given value available for the recipient.

![Email content with a dynamic text placeholder in the Preview text](https://docs.kentico.com/docsassets/modules/personalize-emails/Emails_Dynamic_Text_Placeholder.png "Email content with a dynamic text placeholder in the Preview text")

For **Rich text editor** fields, you can alternatively add dynamic text via the editor toolbar:

1. Place the cursor to the desired location within a rich text field and select **Insert Dynamic Text** () on the editor toolbar.
2. Fill in the dialog:
   - **Recipient attribute** – select the recipient attribute or order value that will be displayed.
   - **Backup text** – text displayed to recipients who do not have a value available for the selected attribute.
3. Select **Insert**.

![Email content with dynamic text in a rich text field](https://docs.kentico.com/docsassets/modules/personalize-emails/Emails_Dynamic_Text_RTE.png "Email content with dynamic text in a rich text field")

The rich text field now contains a highlighted piece of dynamic text, showing the selected recipient attribute. You cannot modify dynamic text after it has been added. If you need to make adjustments, delete the text and add it again with the required values.

When sending emails to specific recipients, the system replaces dynamic text with information available for the recipient.

> **Info:** **Sources for dynamic text values**
>
> When replacing dynamic text values for individual recipients, the system loads the information based on the email's [purpose](https://docs.kentico.com/modules/work-with-emails/introduction-to-emails.md#email-purposes):
>
> - For _Regular_ and _Confirmation_ emails, the email attempts to get the values from the [contact](https://docs.kentico.com/documentation/business-users/digital-marketing/contact-management.md) representing the recipient.
> - For _Form autoresponder_ emails, the values are loaded from the matching fields of the submitted form. If fields are not available for the _First_ or _Last name_, the email attempts to get the values from the contact representing the recipient.
> - For _Automation_ emails, the values are loaded from the matching fields of the form whose submission triggered the [automation process](https://docs.kentico.com/documentation/business-users/digital-marketing/automation.md). If the process isn't triggered by a form submission or such fields are not available, the email attempts to get the values from the processed contact.
> - For _Order status change_ emails, the placeholders values are always loaded from the data of the related commerce [order](https://docs.kentico.com/documentation/business-users/manage-commerce-stores.md).

### Send draft emails

You can preview and test your emails by sending a draft version to any address.

1. Select the email in an email channel application.
2. Make sure there are no unintended changes in the email's content. The system automatically saves the email when sending a draft.
3. In the **Content** view mode, select **Send draft** from the drop-down list in the upper right corner of the view.

   ![The action drop-down when editing an email](https://docs.kentico.com/docsassets/modules/personalize-emails/Emails_Send_Draft.png "The action drop-down when editing an email")
4. Enter the email addresses where you want to send the draft.

   - By default, the _To_ field is prefilled with the email address of your user account.
   - You can enter multiple email addresses separated by semicolons (;).
5. Select **Send**.

Draft emails differ from normally sent emails in the following ways:

- The email content is sent based on the latest edited status of the email, even if the changes are not published. Normally sent emails always contain the published version of the email content.
- [Email statistics](https://docs.kentico.com/modules/work-with-emails/email-statistics-in-xperience.md) are not tracked for drafts.
- Because the recipients are not linked to contacts in the system, any [personalized dynamic text](#personalize-emails-with-dynamic-text) in the email appears as it would for a fake recipient named _John Doe_.
- Certain features, such as [unsubscription links](https://docs.kentico.com/documentation/business-users/digital-marketing/emails/send-regular-emails-to-subscribers.md), are not functional in draft emails.

### Clone emails

When creating new emails, you can save time by reusing the content and settings of an existing email.

1. In an email channel application, view the list of emails.
2. Select the **Clone** () action next to the email that you want to reuse.
3. Enter the name of the new email. The default name is _(Clone) {original name}_.
4. Select **Clone** to confirm the action.

You can also **Clone** an email by using the drop-down list in the upper right corner in the **Content** view mode of the email you'd like to reuse.

The application creates a new email with the same content and properties as the original. Adjust the new email's subject, content, sender, and any other properties as required.

If [Content locking](https://docs.kentico.com/documentation/business-users/content-locking.md) is enbaled, the item is not locked immediately.
You only acquire the lock once you start editing.
