Pedro Franco
Pedro Franco

Reputation: 2006

How can i send e-mail with SendGridAPICliente. Azure Website

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

Answers (1)

Renatto Machado
Renatto Machado

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

Related Questions