Sending an email notification using SendGrid service
In this recipe, we will learn how to create a SendGrid output binding and send an email notification, containing static content, to the website administrator. Since our use case involves just one administrator, we will be hard-coding the email address of the administrator in the To address field of the SendGrid output (message) binding.
Getting ready
We'll perform the following steps before moving on to the next section:
- We will create a SendGrid account API key from the Azure portal.
- We will generate an API key from the SendGrid portal.
- We will configure the SendGrid API key with the Azure Function app.
Creating a SendGrid account API key from the Azure portal
In this section, we'll be creating a Send service and also generate the API by performing the following steps:
- Navigate to the Azure portal and create a SendGrid Email Delivery account by searching for it in the marketplace...