# Tags

This functionality allows you to automatically tag a group of emails, thus marking them with appropriate labels.

<figure><img src="https://17161662-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhdqhDLiL2YgnAUvVvPx6%2Fuploads%2FaW7yjkQjo7qmdjG2X8Su%2Femail-tags_1%402x.png?alt=media&#x26;token=eadee30b-7b77-44d8-97b1-0f6cfe415ca9" alt="email-tags"><figcaption></figcaption></figure>

1. Go to **SMTP Accounts tab > Settings > Tags.**
2. Choose one of the following ways to tag your emails:

   * **Adding the rule for the “From” field:** the tags will be added based on the sender’s email address.
   * Adding the “Subject” field rule: the tags will be added based on the email’s subject line.\
     If you choose to label your messages based on the subject line, you can use the “\*” sign - it will mean that there might also be other characters besides the searched-for ones in the subject field.

   **Example:**

   * **“Searched phrase\*”** - the system will find the searched phrase and everything that comes after that.
   * **No “\*”** symbol means only the searched phrase will be found.
3. Fill in the **“Tag”** field and click the **“Add rule”** button.

You can also find the list of all used tags in the Administrator tab > Tags.

{% hint style="info" %}
**Important!** You can add tag rules even when the functionality is not turned on. Select the “Turned on” option to enable it and click the “Save” button.
{% endhint %}

You can read our API documentation to learn more about tagging emails via API:

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td>⚙️ <strong>API DOCS</strong></td><td>Check how to tag messages via API.</td><td><a href="https://dev.emaillabs.io">MORE >></a></td></tr></tbody></table>

**⬅️ Detailed instructions for each panel section under the 'Functionalities' tab can be found in the drop-down menu on the left.**
