---
title: Writing static campaign emails
related:
  - https://docs.kentico.com/k9/on-line-marketing-features/email-marketing/working-with-email-campaigns/creating-static-campaign-emails.md
  - https://docs.kentico.com/k9/on-line-marketing-features/email-marketing/working-with-email-campaigns/preparing-email-campaign-templates.md
  - https://docs.kentico.com/k9/configuring-kentico/configuring-smtp-servers.md
  - https://docs.kentico.com/k9/on-line-marketing-features/email-marketing/integrating-email-marketing-campaigns-into-sites.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).

After you [create a static email campaign](https://docs.kentico.com/k9/on-line-marketing-features/email-marketing/working-with-email-campaigns/creating-static-campaign-emails.md) and acquire subscribers, you can send out individual emails. The following steps demonstrate how to create a sample email:

1. Open the **Email marketing** application.
2. Edit () an email campaign.
3. Click **Create new email**.
4. Fill in a **Subject**.
5. (Optional) [Specify UTM parameters](#tagging-email-links-with-utm-parameters) used in the campaign links.
6. Fill in the email into **content**.
7. (Optional) Add a condition, such as the reader's first name, using the **Insert macro**  button in the editor toolbar.

   1. An **Insert Macro** dialog opens.

      ![Inserting macro into an email](https://docs.kentico.com/docsassets/k9/writing-static-campaign-emails/inserting_macro.png "Inserting macro into an email")

      > **Info:** The system automatically replaces the _{% FirstName %}_ macro expression with the email recipient's first name.

      ![Macro in an email](https://docs.kentico.com/docsassets/k9/writing-static-campaign-emails/writing_static_emails.png "Macro in an email")

      > **Note:** **Email templates**
      >
      > The overall structure of this email is defined by the default _Email template_, which you can find in the **Template management** tab of the **Email marketing** application. See [Preparing email campaign templates](https://docs.kentico.com/k9/on-line-marketing-features/email-marketing/working-with-email-campaigns/preparing-email-campaign-templates.md) for more information.
      >
      > Email campaigns can have multiple templates assigned. In this case, expand **Show advanced options** next to the ****Subject** field**, where you can choose a template for the new email. You can also change the template by clicking **Show advanced properties** next to the **Subject** field and selecting a different option through the **Template** selector.
8. (Optional) Add attachments to the email. We recommend attaching any assets, such as images or PDF files via Media libraries:

   1. Add the files that you want to add to a [media library](https://docs.kentico.com/k9/managing-website-content/working-with-files/media-library-files/inserting-files-into-media-libraries.md).
   2. In the email, click on where you want to link the attachment.
   3. In the text editor, click **Insert/Edit link** (for adding links) OR **Insert/Edit image or media** (for displaying assets directly in the email).
   4. On the Media library tab, select the file that you want to link.
   5. Adjust the properties, such as **Link text** if you're adding text.
   6. **Save & Close**.\
      The advantage of this approach is that the file in the email will always point to the most up to date file stored in the media library. Also, this approach is better performance-wise as it doesn't affect performance when sending the email the way attaching a file using the **Attachment** button does.
9. Click **Save**.

   > **Info:** Once you save the email, you can manage it using the following actions:
   >
   > - **Send draft** - allows you to send a test draft of the email to any email address. Draft emails do not correctly resolve email macros (such as unsubscription links), since the recipients are not linked to subscribers in the system.
   > - **Preview** - opens a dialog window where you can view how the email will appear to specific subscribers.
   > - **Attachments** - allows you to attach files to the email, such as images, an event agenda, white papers, etc. However, **we recommend** using the approach described in the above scenario to attach files to campaign emails.
   > - **Create A/B test** - may be used to prepare an A/B test for the email. This allows you to create several different versions of the email, evaluate them on a test group of subscribers and then send out the most successful one. Clicking this button adds the first testing variant of the email. See [A/B testing email campaigns](https://docs.kentico.com/k9/on-line-marketing-features/email-marketing/a-b-testing-email-campaigns.md).

## Previewing and sending campaign emails

1. Click **Preview**.

   - This opens a dialog where you can see how the content of the email will appear for each subscriber.

![Previewing an email](https://docs.kentico.com/docsassets/k9/writing-static-campaign-emails/previewing_email.png "Previewing an email")

2. **Close** the preview dialog.
3. Switch to the **Send** tab.
4. Choose when the system sends out the email:

   - **Send now to all subscribers** - the email is sent out immediately to all subscribers.
   - **Schedule email campaign mail-out to all subscribers** - the mail will be sent out on the specified date and time.
   - **Send draft email to specified email addresses** - the email will not be sent for now and you can decide on the mail-out time later.
5. Click **Finish**.

On the **Emails** tab, you can review the statistics and details of the emails. You can modify emails that are scheduled to be sent out in the future by clicking **Edit** ().

> **Tip:** If you experience problems with receiving emails, try following the instructions on the [Troubleshooting email campaigns](https://docs.kentico.com/k9/on-line-marketing-features/email-marketing/troubleshooting-email-campaigns.md) page.

## Tagging email links with UTM parameters

To be able to better analyze your marketing campaigns, you can specify UTM parameters in campaign emails. The parameters are then added to all the links leading from the email to your site. This allows you to better track your marketing campaigns.

You can add the following parameters:

- **UTM source** (Campaign source) - identifies the source of the traffic. For example, a search engine, email campaign, referral site or other sources.
  - Set to _Email-campaign-name\_campaign-email_ by default.
- **UTM medium** (Campaign medium) - identifies the medium the link was used in.
  - Always set to 'email' in Kentico campaign emails.
- **UTM campaign** (Campaign name) - identifies a specific campaign or a promotion.
  - You can select an existing Kentico campaign or use a custom campaign name, for example for campaigns specified outside of Kentico.

### Adding UTM parameters to email links

1. Open the **Email marketing** application.
2. **Edit** the email campaign where you want to use UTM parameters.
3. Next to **Subject**, click **Show advanced options and UTM tracking settings**.
4. Enable **Tag email links with UTM parameters**.
5. Specify the UTM parameters.
6. **Save**.

All the email links leading back to your site will now be tagged by the specified UTM parameters.

**Note**: UTM parameters are shared across email campaign [A/B test variants](https://docs.kentico.com/k9/on-line-marketing-features/email-marketing/a-b-testing-email-campaigns.md).
