In the previous recipe, we hardcoded most of the attributes related to sending an email to an administrator, as there was just one administrator. In this recipe, we will modify the previous recipe to send a Thank you for registration email to the users themselves.
Sending an email notification dynamically to the end user
Getting ready
Make sure that the following are configured properly:
- The SendGrid account has been created and an API key is generated in the SendGrid portal.
- An App settings configuration is created in the Application settings of the function app.
- The App settings key is configured in the SendGrid output (message) bindings.