> For the complete documentation index, see [llms.txt](https://docs.antsomi.com/cdp-365-user-guide-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antsomi.com/cdp-365-user-guide-en/use-cases/marketing-hub/how-to-send-email-using-sendgrid-in-cdp-365.md).

# How to Send email  using "SendGrid" in CDP 365

### 1. Log in to **CDP 365**. Hover your mouse over **Settings**. Choose **Channel Integration**.

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FuolZBNgWfNRrlpn2T83J%2Fimage.png?alt=media&amp;token=ff2d0c57-4223-49ff-8fe2-4b8c6e59d929" alt=""><figcaption></figcaption></figure>

### 2. Click + button and select Email

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FYpQ1NIq9bcTaXAoxmvtg%2Fimage.png?alt=media&amp;token=977b87e6-b38e-45ba-b719-bdfa2eb352e9" alt=""><figcaption></figcaption></figure>

### 3. Select Destination catalog: SendGrid

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FbiLuJsMN8IFmIOYGeBW5%2Fimage.png?alt=media&amp;token=71f5e63a-29b3-4947-a9b6-cd9537eb140e" alt=""><figcaption></figcaption></figure>

### 4. Fill in the necessary information for the destination

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FFIE5ynzgXnnDaramSwp8%2Fimage.png?alt=media&amp;token=5b82104b-5caf-4e1c-bbf4-4176812e7753" alt=""><figcaption></figcaption></figure>

| Field                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| To Email             | <p>Email recipients. </p><p>You can click <img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FfLhF5zj2M4yFGWmlKu1I%2Fimage.png?alt=media&amp;token=3e9368b3-87a8-4ea9-afb1-f754aae301a4" alt=""> icon to add Personalization</p><p><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FSqGuUV8sWU9ZIRcl8wQE%2Fimage.png?alt=media&amp;token=ce806c2f-79d3-4aea-b83b-69919f2ca34d" alt="" data-size="original"></p> |
| CC Email             | Use to send an email to many people same time                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| API Key              | [API key that you created on SendGrid](#how-to-create-api-key-on-sendgrid)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| From Email Name      | Sender name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| From Email Address   | Email that you use to send to customers                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Unsubscribe Group Id | [ID of Unsubcribe Group that you create on SendGrid (optional)](#how-to-create-an-unsubscribe-group)                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

### How to create "API Key" on "SendGrid"

&#x20;  1\. Login **SendGrid** system

&#x20;  2\. Navigate to **Settings** on the left navigation bar, and then select **API Keys**.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmECwNqMNUmu6OXHSYgDv%2Fuploads%2Fg3L36dgcmXRduiU93bBO%2Fimage.png?alt=media&#x26;token=edbcf413-9687-47ef-b61c-0bc3b1933334" alt=""><figcaption></figcaption></figure>

&#x20; 3\. Click **Create API Key**.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmECwNqMNUmu6OXHSYgDv%2Fuploads%2Fand6ecJNWsglbKO9Bylo%2Fimage.png?alt=media&#x26;token=aea0e2da-2e4e-4932-aa94-f93c5802933b" alt=""><figcaption></figcaption></figure>

&#x20;  4\. Give your API key a name and select **Full Access**, **Restricted Access**, or **Billing Access**.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmECwNqMNUmu6OXHSYgDv%2Fuploads%2F1FxNqm2lJ3GaYucN5Mnq%2Fimage.png?alt=media&#x26;token=87f0210a-f4fe-48b0-9761-7d47b775d192" alt=""><figcaption></figcaption></figure>

&#x20;  5\. Click **Create & View** button.

&#x20;  6\. After successfully creating, copy your API key somewhere safe. For security reasons, do not put it directly in your code, or commit it somewhere public like GitHub.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmECwNqMNUmu6OXHSYgDv%2Fuploads%2FzbbfB3D7iVTB583oI22u%2Fimage.png?alt=media&#x26;token=19109b73-a20e-49f5-8f3c-f28759aa992d" alt=""><figcaption></figcaption></figure>

### How to create an Unsubscribe Group

Allow customers to opt-out of specific types of emails you send.

&#x20;  1\. Login **SendGrid** system

&#x20;  2\. Navigate to **Marketing** on the left navigation bar, and then select **Unsubscribe Group**

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmECwNqMNUmu6OXHSYgDv%2Fuploads%2FRsoQOzRN8gtiYfcGLA4P%2Fimage.png?alt=media&#x26;token=cdb1037f-fb11-4872-bb49-7ced793165ee" alt=""><figcaption></figcaption></figure>

&#x20;  3\. Click **Create new Group** button

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmECwNqMNUmu6OXHSYgDv%2Fuploads%2FmZpiWRuApy9UYiXPW6RG%2Fimage.png?alt=media&#x26;token=d3049afe-6ba2-4b1b-b65d-03bb8b3944c2" alt=""><figcaption></figcaption></figure>

&#x20;  4\. Fill in the **Group name** and description

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmECwNqMNUmu6OXHSYgDv%2Fuploads%2FmkoNvIA7aF78EeOv8Dzi%2Fimage.png?alt=media&#x26;token=c7bbf9e9-8f3f-4e47-9ace-ce90e077a365" alt=""><figcaption></figcaption></figure>

&#x20;  5\. After successfully creating, you must upload or manual add data for **Unsubscribe Group**

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmECwNqMNUmu6OXHSYgDv%2Fuploads%2F3VwrIxApyEzeKnyBxjj7%2Fimage.png?alt=media&#x26;token=969142a8-4269-46eb-93ff-e9d36e92ca23" alt=""><figcaption></figcaption></figure>

&#x20;  6\. Get **Unsubscribe Group Id**

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmECwNqMNUmu6OXHSYgDv%2Fuploads%2FRNeDeEyDrzseRWjE1OTr%2Fimage.png?alt=media&#x26;token=a3c1d98c-8b3d-4e66-b98b-0f65403f79d7" alt=""><figcaption></figcaption></figure>

### 5. Save to finish creating the SendGrid destination

### &#x20;

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FY3ATrMELqX2FBUZ62qIk%2Fimage.png?alt=media&amp;token=8fdfe68e-8b7c-4755-a165-35d396d852d4" alt=""><figcaption></figcaption></figure>

### 6. Sending email using SendGrid via Customer Journey

Log into **CDP 365** system. Hover your mouse over **Marketing** and go to **All Channels** menu.

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FRYCGk9ZH6wlMbgxTQlqm%2Fimage.png?alt=media&amp;token=bda93954-dcb6-41bd-9482-2ff12c11a310" alt=""><figcaption></figcaption></figure>

We have 2 channels that supporting to send:

* Email
* Orchestration

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FY94Bq6SAztzSa5Ql9qgT%2Fimage.png?alt=media&amp;token=32aded10-149a-4473-bebc-f5c1bc5dc0ec" alt=""><figcaption></figcaption></figure>

Click **+** button to Create Journey, add **Destination** node and select **SendGrid** destination

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2Fkcw0UuAnZYoAp7RCQmIM%2Fimage.png?alt=media&amp;token=4469772a-944b-40c9-9740-9348549042e7" alt=""><figcaption></figcaption></figure>

Select the **SendGrid** destination that you have created before

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2F7zi4pLo2daKpV9OHhw6J%2Fimage.png?alt=media&amp;token=7e48f734-08ba-4077-b2b9-48ba22788f63" alt=""><figcaption></figcaption></figure>

Fill out necessary information

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FIOlHRK3DbMvgdtCjvZ6o%2Fimage.png?alt=media&amp;token=a71c0437-a4c8-4659-9365-840b6dc32397" alt=""><figcaption></figcaption></figure>

* Variant Name: The name of Variant. This field is required.
* Subject: title of Email. This field is required.
* Preheader: overview of email. This field is optional. If there is no value, the default will show the content of the email in the preheader position.&#x20;
* Select email template: Can select from gallery or you template. Hover on template and click Use template to select.

Click the **Save** button to finish setting up journey

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FXBuuavm88jVDZaguLkLE%2Fimage.png?alt=media&amp;token=09fe865c-0c2e-493d-8dc7-dce0ecb503c6" alt=""><figcaption></figcaption></figure>

After finishing the setting of the Journey, we can **activate** and send email to customer.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.antsomi.com/cdp-365-user-guide-en/use-cases/marketing-hub/how-to-send-email-using-sendgrid-in-cdp-365.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
