Use your SendGrid account
You can use your SendGrid account to send email through Customer.io with no loss in functionality. To take advantage of SendGrid, you need to do two things:
- Point SendGrid’s webhooks at Customer.io.
- Configure SendGrid as a custom SMTP server in Customer.io.
Point SendGrid’s event API at Customer.io
Now you’ll need to adjust some settings to make sure your SendGrid account (or subuser) sends Customer.io the right data.
- Go to Sendgrid. If you have a subuser for sends through Customer.io, click your account name at the top left, click Switch User, and select the subuser you created for Customer.io. If you want to create a subuser specifically for Customer.io sends, see the section below.
- Go to Settings > Mail Settings.
- Under Webhook Settings, click Event Webhooks.
- Click Create new webhook.
- Toggle Enable endpoint on.
- Enter the Customer.io URL corresponding to your account region in the Post URL field.
- Check the Dropped, Delivered, Bounced, and Spam Reports actions. Do not select Opened and Clicked to avoid duplicating data; Customer.io tracks these events automatically.
- (Optional) Go to Settings > Sender Authentication and click Authenticate Your Domain to set up Domain Keys (DKIM).
(Optional) Create a subuser
If you send some (but not all) of the mail in your SendGrid account through Customer.io, you’ll want to create a subuser first. With a subuser, you can track all your Customer.io email activity without blending in data from your other SendGrid activity and use separate IPs for separates services.
Not all SendGrid plans support the ability to create subusers, so check your plan before you try to create one.
If your plan offers subusers, you can find the option to create new subusers on the Settings > Subuser Management page. A SendGrid subuser has a username, email address and password, letting you (or someone on your team) log in to SendGrid as that subuser. You also need an API key associated with this subuser to add SendGrid to Customer.io in later steps.
If you don’t set up a subuser and use your primary SendGrid account for Customer.io, all your email sent via SendGrid will show up under one account.
Configure custom SMTP settings
Before you begin, you need a SendGrid API key. If you set up a subuser, use the API key that belongs to that subuser. Customer.io sends email to SendGrid through SendGrid’s API rather than SMTP, so you don’t choose a port for this integration.
-
Click Add custom SMTP server.
-
Under Delivery provider, select SendGrid and click Continue.
-
On the Set up webhooks tab, copy the webhook URL and set up webhooks in SendGrid so Customer.io can report delivery metrics. Then click Done, or click Skip for now to set up webhooks later.
-
On the Add credentials tab, enter your SendGrid API key.
-
Click Finish set up. Your account is now set up to send email through SendGrid. If you have any questions or feedback, contact us and we’ll be happy to help!