# SendGrid Integration

### Introduction

SendGrid provides SMTP (Simple Mail Transfer Protocol) services, allowing users to utilize their mail servers for sending emails. It is an ideal choice when dealing with a high volume of emails, as manually handling such quantities would be time-consuming and labor-intensive.

{% hint style="info" %}
If you have any queries, reach out to us at **<support@growlytics.in>**
{% endhint %}

### Integration

1. Ensure you have access to your SendGrid account.
2. Ensure that your SendGrid account is set up and configured.

### Configure SendGrid account

You can sign up for SendGrid at [**https://sendgrid.com/pricing**](https://sendgrid.com/pricing) and select your pricing plan. After account creation, you can optionally white-label your domain in your account by clicking on the 'Set Up + Configure' button.

<figure><img src="https://files.readme.io/6e456d0-img9.PNG" alt=""><figcaption><p>Whitelabel you domain</p></figcaption></figure>

Add a new domain and click on 'Save'. Then you can add the SendGrid specified TXT Records in your domain's DNS settings. This will remove 'via sendgrid.net' seen by email recipients.

<figure><img src="https://files.readme.io/bac152a-img10.PNG" alt=""><figcaption></figcaption></figure>

### Configure SendGrid on the Growlytics Dashboard

To configure SendGrid on Growlytics, login to your Growlytics dashboard and go to Settings > Email > Add Provider > Select 'SendGrid' from the drop-down.

<figure><img src="https://files.readme.io/b4317c6-img11.PNG" alt=""><figcaption><p>Sendgrid on Growlytics</p></figcaption></figure>

When SendGrid is selected, you will be asked to provide the SendGrid API key and email address.

1. API KEY: Generate and put SendGrid API key here.
2. From Email Address: Email id you want to use to send emails from Growlytics. Make sure the email id that you mention here is approved on SendGrid.

**Configure SendGrid Webhooks For Delivery Reports.**

Next, to receive delivery reports from SendGrid, you will need to configure SendGrid webhooks.

1. Login to your SendGrid dashboard, go to Settings > Mail Settings > Event Webhooks. You will be seeing a popup to provide a webhook URL as shown in the screenshot below:

<figure><img src="/files/X1eyGLlAi4FiRTohxBil" alt=""><figcaption><p>Event Webhook</p></figcaption></figure>

2\. Copy the webhook URL from your Growlytics dashboard for SendGrid and paste it into the webhook input box on the SendGrid dashboard.

<figure><img src="/files/c43vq78lSpGaBBiCXSLV" alt=""><figcaption></figcaption></figure>

3\. After configuring the webhook URL, the option for the following delivery events on the SendGrid dashboard: Dropped, Bounced, Delivered.

<figure><img src="/files/BkoN6yl4bBTtCsjClPdS" alt=""><figcaption></figcaption></figure>

That's all you need to do for SendGrid integration. Make sure to send out a test campaign to confirm if the integration is working well.&#x20;

If you have any queries, reach out to us at **<support@growlytics.in>**


---

# Agent Instructions: 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:

```
GET https://support.growlytics.in/integrations/email-integrations/sendgrid-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
