Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/0xdeafcafe/sendgrid-dotnet


https://github.com/0xdeafcafe/sendgrid-dotnet

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

sendgrid-dotnet
===

**This repo isn't maintained anymore, please use the official SendGrid SDK [here](https://github.com/sendgrid/sendgrid-csharp)**!

Little library for using SendGrid's v3 mail API with DotNet Core.

#### Simple Usage Example
``` csharp
var key = new ApiKeyConnection("SG.api.key");
var client = new SendGridClient(key);
client.MailClient.SendAsync(new Email
{
Personalizations = new List
{
new Personalization
{
To = new List
{
new EmailDetail
{
Email = "[email protected]",
Name = "Customer Name"
}
}
}
},
From = new EmailDetail
{
Email = "[email protected]",
Name = "Company Letter"
},
Subject = "sup",
Content = new List
{
new Content
{
Type = "text/html",
Value = "

yo yo! :)

"
}
}
}).Wait();
```