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:
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.
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.
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.
Select Set up + Subscribe.

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

Select the Subscription that the customer has set up.
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.
You will be asked to agree to Azure's terms of service. You can now review your order and click Subscribe.
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.
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:
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.

- 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.

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.
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.

Last updated on