Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xdeafcafe/sendgrid-dotnet
https://github.com/0xdeafcafe/sendgrid-dotnet
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/0xdeafcafe/sendgrid-dotnet
- Owner: 0xdeafcafe
- License: other
- Archived: true
- Created: 2016-04-30T20:44:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-07T19:49:25.000Z (about 4 years ago)
- Last Synced: 2024-10-03T17:18:48.631Z (3 months ago)
- Language: C#
- Size: 27.3 KB
- Stars: 15
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-dotnet-core - SendGrid Client - C# library for the SendGrid v3 mail endpoint. (Frameworks, Libraries and Tools / Mail)
- awesome-dotnet-core - SendGrid Client - C# library for the SendGrid v3 mail endpoint. (框架, 库和工具 / 邮件)
- fucking-awesome-dotnet-core - SendGrid Client - C# library for the SendGrid v3 mail endpoint. (Frameworks, Libraries and Tools / Mail)
- awesome-dotnet-core - SendGrid Client - C# library for the SendGrid v3 mail endpoint. (Frameworks, Libraries and Tools / Mail)
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();
```