Reputation: 2006
I`m trying to send an e-mail with SendGrid but i got some errors. I was making this tutorial but after install SendGrid i cant creat any instance of SendGridMessage.
I am using .NET Framework 4.5.2
var test = new SendGirdMessage();
I got this error:
Error 3 The type or namespace name 'SendGridMessage' could not be found (are you missing a using directive or an assembly reference?)
Then i already try to use SendGridAPIClient, this i can creat but that aren`t sending the e-mail. I follow this tutorial With Mail helper class.
Could some one help me to send e-mail from azure?
Upvotes: 3
Views: 240
Reputation: 1574
You should use the version 2 of SendGrid to that tutorial. To use this version you have that install the SendGrid C-Sharp 6.3.4 or bellow. In Package Management Console write:
Install-Package SendGrid -version 6.3.4
Upvotes: 3