Techiio-author
Started by Tom NelsonSep 7, 2021

Open
Getting error when sending email using sendgrid

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I have created an azure function to send email using sendgrid but get the below error.

The 'Function1' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Function1'. Microsoft.Azure.WebJobs.Host: Unable to resolve the value for property 'SendGridAttribute.ApiKey'. Make sure the setting exists and has a valid value

I took the sample from Azure Functions SendGrid bindings - asynchronous

Given in the local.settings.json like below:

{ 
"IsEncrypted": false,
"Values":
{
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"AzureWebJobsServiceBus": " ..."
//"AzureWebJobsSendGridApiKey": "..."
}
}

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance