sendgrid不使用C#发送邮件

时间:2018-09-24 06:39:19

标签: c# sendgrid

我有一段使用sendgrid发送邮件的代码,它没有显示任何错误或异常。但是

try
{
    var client = new SendGrid.SendGridClient(                            
                        WebConfigurationManager.AppSettings["sendGridApiKey"], 
                        null, 
                        null, 
                        "v3",
                        null);
    client.SendEmailAsync(message);
}
catch(Exception ex)
{ 

}

它给出了未找到sendgrid client.cs或未找到sendgrid message.cs的消息。因此我从nuget安装了新版本的sendgrid。但是问题没有解决。它还能尝试还是修改代码

0 个答案:

没有答案