---
title: "SendGrid"
slug: "sendgrid"
description: "Send your emails in Close using SendGrid as an email service provider"
updated: 2023-11-09T23:51:52Z
published: 2023-11-09T23:51:52Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.close.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SendGrid

## Getting started

## Create your SendGrid account

1. [Create an account with SendGrid](https://sendgrid.com/pricing). SendGrid offers 40,000 emails for 30 days, then 100 emails/day. Beyond that, you'll need to upgrade to a $14.95/mo plan that offers about 40,000 emails per month.
2. Activate your SendGrid account. Open the SendGrid activation email you received in the email account you used for signup and follow the instructions.

## Adding your domain name to SendGrid

1. First, we need to set up [Domain Authentication](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication) that includes [SPF](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/#spf) and [DKIM](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/#dkim) to ensure our emails are delivered to recipients. Go to **Settings** > **Sender Authentication** > click the **Get Started** button – or [click here](https://app.sendgrid.com/settings/sender_auth/domain/create).  
![a75c5c5-Screenshot2020-04-03at150548.jpg](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/a75c5c5-Screenshot2020-04-03at150548.jpg)*Getting Started with Sender Authentication*
2. Add your domain. If your email is `bob@mycompany.com`, then your domain name is everything after the "@" symbol - `mycompany.com`. We will leave Advanced Settings as-is.![d487142-Screenshot2020-04-03at150836.png](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/d487142-Screenshot2020-04-03at150836.png)*Entering domain name*
3. Select your DNS host (e.g., GoDaddy, Namecheap, etc.), and, for now, we won't be using [brand links](https://sendgrid.com/docs/glossary/link-branding), so we will leave the second question as `No`. Instead, our emails will have [Close's email](/v1/docs/emailing#tracking-email-opens)tracking enabled.![482bbda-Screenshot2020-04-03at150848.png](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/482bbda-Screenshot2020-04-03at150848.png)*Selecting the DNS host for your domain*

Link Branding

Link Branding is used for open email tracking images and click-tracking links so that links are pointing to your domain instead of using default SendGrid's. That way, the email's reputation is higher, and so is deliverability. See more info on [SendGrid](https://sendgrid.com/docs/glossary/link-branding).

1. Depending on your DNS host selection, this page might differ. The image below shows when you select `Other host (not listed)&nbsp;`which is an option for manual configuration. Keep this tab open for easy copy-paste for the next step.![d155e37-Screenshot2020-04-03at150927.png](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/d155e37-Screenshot2020-04-03at150927.png)*SendGrid's DNS records*

### Adding the DNS entries

1. Log into your domain register/host and navigate to the DNS settings.

Pro Tip: Follow the links for guidance on adding new DNS records.

Revisit the [You'll Need Your Domain Host Credentials](/v1/docs/mailgun) section above and click on the various domain hosts listed for examples of modifying DNS entries.

1. Create the first CNAME record - in our case, that's `em1361.mycompany.com` with value `u15641312.wl063.sendgrid.net`.
2. Create the `s1._domainkey` and `s2._domainkey` CNAME records.
3. Save your DNS changes.
4. Back in SendGrid, click the `Verify` button, and you should be greeted with `It worked!&nbsp;`confirmation.![602e403-Screenshot2020-04-03at153612.png](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/602e403-Screenshot2020-04-03at153612.png)*Completed DNS verification*

DNS changes take 24-48 hours!

After you save your DNS records, it will take approximately 24-48 hours to propagate them globally.

### Configuring Close to work with SendGrid's SMTP

1. Once your DNS settings are verified (usually 24-48 hours later), [log into your SendGrid account in your web browser](https://app.sendgrid.com/).
2. Go to `Email API &gt; Integration Guide &gt; SMTP Relay - Choose&nbsp;`to set up an SMTP relay.![bfe2df6-Screenshot2020-04-03at153717.jpg](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/bfe2df6-Screenshot2020-04-03at153717.jpg)*Setting up an SMTP relay*
3. Enter the name for your API key and click `Create Key` , which will act as your `Password&nbsp;`when connecting the email account in Close.![10feb30-Screenshot2020-04-03at153810.jpg](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/10feb30-Screenshot2020-04-03at153810.jpg)*Generating an API key*
4. Make sure you keep the info from this page saved, as we will need it in the next step. Click on `Next: Verify Integration`.![](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/4db2c15-Screenshot2020-04-03at153822.jpg)
5. Open the Close app and navigate to `Settings &gt; Accounts &amp; Apps &gt; + Add account &gt; Custom Email`, enter your `Login` email, press `Continue`, and on the screen below, toggle off `Enable email syncing&nbsp;`option.![da546ff-Screenshot2020-04-05at081235.png](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/da546ff-Screenshot2020-04-05at081235.png)*Click "Custom Configuration" and toggle off "Enable email syncing"*
6. Enter the SMTP details you noted in step #4 and then click `Save`:

- SMTP Host - `smtp.sendgrid.net`
- SMTP Username - `apikey`
- SMTP Password - your API key from step #3

1. To verify that everything is working as expected, we will need to add SendGrid's SMTP server in Close and send an email to someone. Click on `Verify Integration` and follow the next steps from `Testing it out&nbsp;`section.![0ba4ec0-Screenshot2020-04-03at154049.png](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/0ba4ec0-Screenshot2020-04-03at154049.png)

### Testing it out

You should have a Custom server in your Connected Accounts:

![837dfd9-Screenshot2020-04-05at081319.png](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/837dfd9-Screenshot2020-04-05at081319.png)*Custom SMTP Server in Connected Accounts*

Go to a lead and try to send a new email using your SendGrid custom server by changing the `From` field:

![4478ae0-Screenshot2020-04-05at081433.jpg](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/4478ae0-Screenshot2020-04-05at081433.jpg)*Changing From email address*

If needed, you can change the name/email from which you are sending by going to `Close app &gt; Settings &gt; Accounts &amp; Apps &gt; Custom server &gt; Add a From Address...`

Send an email and go back to SendGrid's verification, and you should see `It worked!` confirmation after a few minutes.

![b42675b-Screenshot2020-04-03at154235.png](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/b42675b-Screenshot2020-04-03at154235.png)*Working SendGrid integration*

Now you can use your SendGrid connected account while sending emails from Close.

## Adding Unsubscribe Links

Most countries have specific laws that specify how you may utilize bulk email. You're responsible for abiding within the applicable regulations, but an honorable (and recommended!) first step is to enable the option to unsubscribe from future emails. This will also help with keeping your email domain off of globally-monitored [black lists](https://sendgrid.com/blog/blacklisted-check-7-popular-blacklists-keep-reputation-intact).

To enable unsubscribe links in SendGrid, go to `Settings &gt; Tracking &gt; Subscription Tracking` and enable it. By default, SendGrid will place the link at the bottom of your emails, but you can customize it and move it wherever you like via the `Replacement Tag` option.

SendGrid will manage the process of not sending emails to people who have opted out. More details at [SendGrid Subscription Tracking](https://sendgrid.com/docs/ui/sending-email/subscription-tracking).

![](https://cdn.document360.io/b5cf4edd-8d9e-4649-a50a-2d7591eba26b/Images/Documentation/0b03b75-Screenshot2020-04-05at083246.jpg)
