---
title: Send an email to imported contacts
---

> 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).

To start sending emails from your Kentico Xperience 13 (Xperience) application, your developers don't need to code an expensive connector between your currently used CRM or emailing solution.

Using marketing automation, Xperience allows you to import contacts from a comma-separated values file and send these contacts an automated email or even a sequence of emails.

The following image shows the flow of the **Send an email to imported contacts** process.

![](https://docs.kentico.com/docsassets/13tutorial/send-an-email-to-imported-contacts/Send-email-to-imported-contacts-simple-V3.png)

> **Tip:** Click [here](https://kentico-download.s3.eu-central-1.amazonaws.com/Training/Marketing+automation+templates/MA_Send_email_to_imported_contacts.zip) to download the process.

## What does the process do?

When you start with email marketing in Xperience, the biggest challenge usually is the lack of contact information (which the system will organically collect through [activity tracking](https://docs.kentico.com/13tutorial/business-tutorial/customer-data-management.md#how-customer-data-in-kentico-xperience-works)). Instead of waiting for the data, you can leverage existing contact data from your CRM or any other email marketing solution that your team uses.

**Start by exporting your existing contacts**

Every CRM or email tool allows you to export your contact data to Google Spreadsheets or Microsoft Excel. You can save this data into a CSV (comma-separated values) file, import it into Xperience, and send your automated emails.

To correctly import contacts, the first row of your CSV file must contain column names. These columns represent fields on the [Contact profile](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/contact-management/working-with-contacts.md). For illustration, you can download a [sample CSV file](https://docs.kentico.com/docsassets/13tutorial/send-an-email-to-imported-contacts/Example-CSV-file.zip).

![](https://docs.kentico.com/docsassets/13tutorial/send-an-email-to-imported-contacts/CSV-file-example.png)

## How to make the process work?

The following diagram shows an overview of what you are going to do.

![](https://docs.kentico.com/docsassets/13tutorial/send-an-email-to-imported-contacts/Send-email-to-imported-contacts-full-V3.png)

## Import the automation process

To import the “Send an email to imported contacts” process into the **Marketing automation** application, follow these steps:

1. Go to the **Sites** application.
2. Click **Import site or objects**.
3. **Upload package**.

   1. Find the .zip file with the Marketing automation process you want to use.
   2. Keep _Preselect all items_.
   3. Click **Next**.
4. In **Macro re-signing**, click **Select**.

   1. Choose your user account.\
      Note: If you don’t have appropriate permissions to sign macros, request them from your website administrator.
5. In the left column, select **On-line marketing → Automation processes**.
6. Go to the **Next** step.
7. Select **Finish** to import your process into the **Marketing automation** application.

Now that you have uploaded your process, adjust it to match your scenario and send your automated emails.

## Add imported contacts into a separate contact group

To trigger a process for a contact, there has to be an event that “touches” this contact. Think of this contact group as a filter for your contact database. It will help you:

- Gather all the imported contacts into one list. Using this group, you can later single out your contacts from the rest of your database.
- If your file contains contacts that you have already collected into your database, moving contacts into this group provides the event that triggers the process.

Follow these steps to create a contact group:

1. Go to the **Contact groups** application.
2. Create a **New contact group**, and choose an appropriate name. (You don’t need to specify a code name. Xperience creates it automatically from the group’s name.)
3. Add a _Description_ to the group that explains the following to your team:

   - the kind of contacts the group collects
   - the purpose of the group

## Set up the Marketing automation process

Great! You have done all the groundwork. The following steps will guide you through setting up the process exactly as you need.

> **Info:** If you want to reuse the process multiple times, you can save it as a template (expand the options in the upper right corner of the _Design_ view and click **Save as template**). The template can be selected when creating a new process, which allows you to always start from the beginning of these steps.

1. Go to the **Marketing automation** application and find the process.
2. Edit the process by clicking on the green pencil icon. You can just follow the yellow notes attached to each step.
3. Select the **Start triggers** step.

   1. Edit the _Contact is in group_ trigger.

      1. Add the name of your contact group to the **Display name**.
      2. Edit the **Additional condition**, add the _Contact is in contact group_ rule and choose the contact group you created previously.
      3. **Save & Close**.
   2. **Save** the new Start triggers settings.
4. Go to the **Send marketing email** step.

   1. Here you can add the email you want to send to your contacts.\
      If you’re going to send an existing email, choose it with the **Edit** button. To use your chosen email, this email must have **Use in Marketing automation** enabled. You can change this setting in the **Email marketing** application.\
      If you want to create a new email, select **New** and build one from scratch.
   2. **Apply** the changes.
5. Select the _Change group_ step to move your contacts to another contact group. You can delete this step if you don't want to move your contacts anywhere.

   1. **Select** your desired contact group.
   2. **Apply** the changes.
6. If you made any changes to the process, check if the flow of the steps follows as you intended.
7. Make the process active by clicking the **Enable** button in the upper right corner.

Now everything is set up. Whenever you upload your CSV file with contact data, your contacts will receive the email and will be added to the selected group.

The process will run only once for any given contact, and send them a single email. Even if you import the same contact again, the email will be sent just the first time.

> **Info:** **Adjusting the process**
>
> If you want to keep the imported contacts in the newly created contact group, delete the **Change group** step and connect the **Send marketing email** and **Finished steps**.
>
> If you’d like to send a series of emails, add a **Wait** step after the **Send marketing email** and set the waiting time between sending your emails. Then add another **Send marketing email** and set up the email in the same way described above. This way, you can add as many emails as you want.
>
> Make sure all changes you need to make to the process are done before you **Enable** it.

🎬 [Video](https://docs.kentico.com/docsassets/13tutorial/send-an-email-to-imported-contacts/Import-Contacts-Send-Email.mp4)

## Run the process

All set! Your process is ready and you can start sending your automated emails.

Go to the **Contact management** application and choose **Import contacts**. **Select a file** you want to upload.

- Tick **Import contacts into an existing contact group** and select the group to start the automation process for your contacts.
- **Map the columns from your file** so all the information will be correctly set up for the contacts.

When you are ready, you can **Import contacts**.

You will immediately see the import results on a summary screen – how many contacts were imported, whether there were any contact duplicates, or if the system didn't import some contacts. (In the latter case, you can download a report explaining why the contact import process failed.)

> **Info:** To check if everything went as planned, open your process in the **Marketing automation** application. In the upper left corner, choose **Contacts**. You will see a list of contacts under the process, where in the process they are (their process status), and the day and time the process was initiated.
