Klevr Product Documentation logo

Twilio SendGrid

There are some instances where the klevr portal will require emails to be sent to users.

Feature Overview

There are some instances where the klevr portal will require emails to be sent to users. In order to allow this, the klevr portal leverages Twilio Sendgrid which is a cost-effective resource that can be managed in the Azure portal.

Design Details

In order to set up a Twilio Sendgrid resource, please follow the below steps:

1
Set up an Azure subscription

In order to be able to use Twilio SendGrid, an Azure subscription needs to be set up (for billing purposes).

  • Visit the Azure portal home page and sign in with an admin account.
  • Once logged in, select the Subscription icon under the Azure services menu.
  • A new page will load with the current Azure Subscriptions, if there are no Azure subscriptions, please request the customer IT provider sets one up.
2
Search for Twilio SendGrid

Once the subscription is set up, enter Twilio SendGrid into the Search bar at the top of the Azure portal and select the resource once it appears.

3
Select an account tier

This will direct you to the Twilio SendGrid resource blade where you can select your account tier. You can start with a free account and upgrade as your sending needs change.

4
Set up and subscribe

Select Set up + Subscribe.

Azure Subscription Setup Page

Azure Subscription Setup Page
5
Assign the subscription and resource group

You will be taken to a page where you can assign your Twilio Sendgrid account to an Azure Subscription and resource group.

Twilio SendGrid Resource Subscription and resource group assigning page

Twilio SendGrid Resource Subscription and resource group assigning page
6
Select the subscription

Select the Subscription that the customer has set up.

7
Choose or create a resource group

The Twilio SendGrid resource can be added to an existing resource group or a new one can be created. It makes sense that this should sit in a global resource group as it is shared.

8
Agree to terms and subscribe

You will be asked to agree to Azure's terms of service. You can now review your order and click Subscribe.

9
Wait for the account to be established

It takes a few moments to establish the account. You will be directed to a progress screen in the meantime. Once the setup is complete, you will be able to click the Configure account now button to be taken to the Twilio SendGrid App.

10
Confirmation email

The customer will also receive an email when the subscription setup is complete.

Twilio SendGrid Account Set Up

The following Twilio SendGrid account setup will need to be completed before the first email can be sent:

1
Create an API key

The API key authenticates the Klevr Portal with the Twilio SendGrid service.

To create the API Key - In the Twilio SendGrid App, navigate to API Keys in the Settings menu, and select Create API Key.

Create API Key Page

Create API Key Page
  • A page will open where you can create your key. You must name the API Key and it is recommended that the name matches your environment.
  • You can create multiple keys on the same SendGrid instance for multiple environments.
  • To keep the account secure, set the API Key Permission to Restricted Access and only allow Mail Send to have Full Access.
  • Every other option can be set to restricted.

API Key Settings Page

API Key Settings Page
2
Complete the Sender Authentication

Next, you will need to ask the customer or the customer's IT provider to complete the Sneder Authentication setup. This requirement protects the customer's domain's reputation as an email sender and helps uphold legitimate sending behaviour by the Twilio SendGrid account.

The setup includes domain authentication. Twilio SendGrid will provide DNS records that the customer must add to their domain.

3
DevOps Pipeline Configuration

Within the customer's DevOps Pipeline Library variable group, you will need to add 3 additional strings.

  • Name: Umbraco.CMS.Global.Smtp.Password | Value: This is the API Key found that you created in the Twilio SendGrid account.
  • Name: Umbraco.CMS.Global.Smtp.From | Value: This is the SMTP address provided by the customer.
  • Name: Umbraco.CMS.Content.Notifications.Email | Value: This is the email address provided by the customer.

Library Variable Group example

Library Variable Group example

Last updated on