---
title: "Insert a token in a message"
slug: "insert-a-token-in-a-message"
abstract: "Personalize your email campaign using tokens in the message subject field or the message body."
---
# Insert a token in a message

The Email Experience Manager (EXM) supports tokens that you can use to personalize your email campaign messages. For example, in the beginning of a message, you can use the token $name$ in the greeting so that when you send your email campaign, the token is replaced with the name of the contact.

![Email message illustrating how a token works.](https://doc.sitecore.com/api/markdown-image/xp/en/users/exm/102/email-experience-manager/images/Token.png)

> [!note]
> If the name of the contact is not available, the recipient sees the actual token.

The following tokens are by default available in EXM:

- $email$
- $fullname$
- $firstname$
- $lastname$
- $name$
- $phone$

> [!note]
> You can use other information from the contact [as a token in EXM](https://doc.sitecore.com/xp/en/developers/exm/102/email-experience-manager/create-a-custom-personalization-token.html).

<details>
<summary><h2>Insert a token in the Subject field or the Alternative text field</h2></summary>

To insert a token:

1. Open the relevant email campaign and click the **Message** tab.
2. In the **Subject** field or in the **Alternative text** field, place the cursor where you want to insert the token.
3. Click **Actions** ![9FD11352A3F94176BF30C47BFAD620C2.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/exm/102/email-experience-manager/images/9FD11352A3F94176BF30C47BFAD620C2.png) and then click **Insert token**.

    ![Email Experience Manager Message tab showing how to insert a token.](https://doc.sitecore.com/api/markdown-image/xp/en/users/exm/102/email-experience-manager/images/InsertToken.png)

4. In the **Insert Token** dialog box, click the relevant token and click **OK**.

    ![Example of a token.](https://doc.sitecore.com/api/markdown-image/xp/en/users/exm/102/email-experience-manager/images/00653AF562DE4DF5AA780B61246EC03D.png)

    > [!tip]
    > If you know the name of the token you can type the token directly in the field, for example, $lastname$. The only way that you can insert a token in the message body is to type the name of the token.

5. Save your changes.

</details>

<details>
<summary><h2>Preview the token for different recipients</h2></summary>

You can preview every token for a specific recipient:

1. On the **Message** tab, in the **Details** section, click **Actions** ![4430EA385C6E40C48513FE75D5528E5A.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/exm/102/email-experience-manager/images/4430EA385C6E40C48513FE75D5528E5A.png) and then click **Preview for recipient**.
2. In the **Preview the email campaign** dialog box, click the recipient that you want to preview the message for and click **OK**.

    ![Preview illustrating how to see the email message for individual users.](https://doc.sitecore.com/api/markdown-image/xp/en/users/exm/102/email-experience-manager/images/7D01E6E2A5F34DF3A26904036F973BBB.png)

The **Message** tab now displays the message with the appropriate contact values instead of the tokens.

</details>