---
title: Integrating email feeds into sites
related:
  - https://docs.kentico.com/k12sp/on-line-marketing-features/managing-your-on-line-marketing-features/email-marketing.md
  - https://docs.kentico.com/k12sp/on-line-marketing-features/managing-your-on-line-marketing-features/email-marketing/managing-marketing-email-recipients.md
  - https://docs.kentico.com/k12sp/developing-websites/developing-websites-using-portal-engine/using-and-configuring-web-parts.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).

Kentico allows you to integrate email feeds, such as email campaigns and newsletters, into your sites by adding web parts for newsletter subscription and email feed unsubscription onto individual pages. You can also use a marketing automation step for subscribing contacts to newsletters and macros for unsubscribing contacts from email feeds.

## Allowing site visitors to subscribe to newsletters

You can use the following web parts to allow visitors to subscribe to newsletters:

- **Newsletter subscription** – displays a dialog that allows website visitors to subscribe to newsletters.
- **Custom subscription form** – provides a newsletter subscription form similar to the _Newsletter subscription_ web part.

  > **Info:** **Changing the subscription form's appearance**
  >
  > The _Custom subscription form_ web part can be configured to use a different layout and appearance. You need to define the customized subscription form as an [alternative form](https://docs.kentico.com/k12sp/configuring-kentico/creating-alternative-forms.md):
  >
  > 1. Open the **Modules** application.
  > 2. **Edit** () the **Email marketing** module.
  > 3. Select the **Classes** tab and edit the **Newsletter - Subscriber** class.
  > 4. Create the form on the **Alternative forms** tab.
- **My newsletter subscriptions** – users can use this web part to add or remove their newsletter subscriptions.
- **My account** – you can configure this web part to display newsletter subscriptions. Users can then add or remove their subscriptions.

## Subscribing contacts to newsletters via Marketing automation

You can use the **Newsletter**  **subscription** [marketing automation](https://docs.kentico.com/k12sp/on-line-marketing-features/managing-your-on-line-marketing-features/marketing-automation.md) step to automatically subscribe contacts to newsletters.

## Allowing recipients to unsubscribe from email feeds

You can use the following web part to allow contacts to unsubscribe from email campaigns and newsletters:

- **Email feed unsubscription** – unsubscribes users from an email campaign or newsletter and displays a confirmation message.

Kentico contains two macros that generate an address that you can use in unsubscription links of your email campaigns and newsletters:

- **EmailFeed.UnsubscribeFromEmailFeedUrl** – creates an address to the unsubscription page, as defined by the _Unsubscription page URL_ property of the given email campaign or newsletter.
  - On the page, the recipient is unsubscribed from a specific email campaign or newsletter.
  - If _Send confirmation email_ is enabled in the _Email feed unsubscription_ web part, recipients receive a confirmation email.
  - Unsubscribing through a URL address created by this macro **logs** the _Unsubscription from a single email feed_ [activity](https://docs.kentico.com/k12sp/on-line-marketing-features/managing-your-on-line-marketing-features/contact-management/tracking-contact-activities/reference-activity-types.md).
- **EmailFeed.UnsubscribeFromAllEmailFeedsUrl** – creates an address to the unsubscription page, as defined by the _Unsubscription page URL_ property of the given email campaign or newsletter.
  - On the page, the recipient is unsubscribed from all email campaigns or newsletters.
  - After unsubscribing, recipients **do not** receive a confirmation email.
  - Unsubscribing through a URL address created by this macro **logs** the _Opted out from all marketing email_ [activity](https://docs.kentico.com/k12sp/on-line-marketing-features/managing-your-on-line-marketing-features/contact-management/tracking-contact-activities/reference-activity-types.md).
  - You can segment contacts that unsubscribed from all marketing emails using the [UnsubscribedFromAllEmails macro](https://docs.kentico.com/k12sp/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/on-line-marketing-macros.md).
  - Recipients unsubscribed from all marketing emails can still receive regular and transactional emails.

You can use these macros in:

- **Email templates** – for emails in email campaigns and newsletters that use a [predefined template](https://docs.kentico.com/k12sp/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-email-marketing/preparing-email-templates.md)

> **Info:** **Managing unsubscriptions from all marketing emails**
>
> - You can [unsubscribe a recipient](https://docs.kentico.com/k12sp/on-line-marketing-features/managing-your-on-line-marketing-features/email-marketing/managing-marketing-email-recipients.md#unsubscribing-recipients-from-all-marketing-emails) from all marketing emails manually.
> - You can [remove a recipient](https://docs.kentico.com/k12sp/on-line-marketing-features/managing-your-on-line-marketing-features/email-marketing/managing-marketing-email-recipients.md) who unsubscribed from all marketing emails.

## Email marketing web parts

To integrate [email marketing](https://docs.kentico.com/k12sp/on-line-marketing-features/managing-your-on-line-marketing-features/email-marketing.md) into your website, place the following web parts onto pages:

| Web part                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Newsletter subscription     | Displays a dialog that allows website visitors to subscribe to newsletters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Custom subscription form    | Provides a newsletter subscription form similar to the _Newsletter subscription_ web part. You can, however, set up this web part to use a different layout and appearance.<br>You need to define the customized subscription form as an [alternative form](https://docs.kentico.com/k12sp/configuring-kentico/creating-alternative-forms.md):<br>Open the **Modules** application.<br>**Edit** () the **Email marketing** module.<br>Select the **Classes** tab and edit the **Newsletter - Subscriber** class.<br>Create the form on the **Alternative forms** tab. |
| Email feed unsubscription   | Unsubscribes recipients from an email campaign or newsletter and displays a confirmation message. Users are typically directed to the page containing this web part through Unsubscribe links in individual marketing emails. The exact email feed and recipient is read from parameters passed in the query string of the URL.                                                                                                                                                                                                                                       |
| My newsletter subscriptions | This web part can be used by users to add or remove their newsletter subscriptions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| My account                  | Can be configured to display newsletter subscriptions. Users can then add or remove their subscriptions.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Subscription approval       | Approves subscriptions to newsletters with double opt-in enabled and displays a confirmation message. Recipients are typically directed to the page containing this web part through a link in the double opt-in activation email. An identifier of the exact subscription is read from a parameter passed in the query string of the URL.                                                                                                                                                                                                                            |
