SendGrid-with-Azure-Functions | sample code repository with an Azure Functions application | Cloud Functions library
kandi X-RAY | SendGrid-with-Azure-Functions Summary
kandi X-RAY | SendGrid-with-Azure-Functions Summary
A sample code repository with an Azure Functions application for sending e-mail using the SendGrid service. This repository contains the source code for the blog article at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SendGrid-with-Azure-Functions
SendGrid-with-Azure-Functions Key Features
SendGrid-with-Azure-Functions Examples and Code Snippets
Community Discussions
Trending Discussions on SendGrid-with-Azure-Functions
QUESTION
I'm trying to understand how I should be using SendGrid in an Azure Function that I'm developing in the Azure Portal. I've been coming at it from as many angles as Google has suggested but it seems there are many outdated ways of doing it that I can't resolve with what is available to me in the Azure Portal. Below is my current basic iteration of sending an email, I pulled this directly from the SendGrid blog (https://sendgrid.com/blog/using-sendgrid-with-azure-functions-to-send-mobile-app-survey-data). I've seen references to using a project.json file to ensure the SendGrid package is installed, but I have no way to create such a file within my function, I can only manipulate the run.csx and function.json files. Below is my code and the errors I'm running into. What am I missing?
...ANSWER
Answered 2020-Oct-08 at 21:47Maybe try using SendGridMessage message = new SendGridMessage()
???
I'd first suggest you try the following to make sure your SendGrid flow works correctly :
- Create a new function of type "Send Grid" Notification. You will be able to see the proper C# on how to use SendGrid that way. See this Image
You can then update your existing code to get it working. I was able to create a sample HTTP triggered function to send a SendGrid message. I have attached the function.json and run.csx for your reference.
function.json
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SendGrid-with-Azure-Functions
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page