In this recipe, you will learn how to create a SendGrid output binding and send an email notification, containing static content, to the website administrator. Our use case only involves one administrator, so we will be hardcoding the email address of the administrator in the To address field of the SendGrid output (message) binding.
Sending an email notification to the administrator of a website using the SendGrid service
Getting ready
We will perform the following steps before moving on to the next section:
- Creating a SendGrid account API key from the Azure Management portal
- Generating an API key from the SendGrid portal
- Configuring the SendGrid API key with the Azure Function app