https://github.com/shibayan/sendgrid
Yet Another SendGrid API C# Library
https://github.com/shibayan/sendgrid
Last synced: over 1 year ago
JSON representation
Yet Another SendGrid API C# Library
- Host: GitHub
- URL: https://github.com/shibayan/sendgrid
- Owner: shibayan
- License: apache-2.0
- Created: 2015-03-05T04:23:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-20T09:51:17.000Z (about 10 years ago)
- Last Synced: 2025-02-12T06:57:00.147Z (over 1 year ago)
- Language: C#
- Size: 87.9 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SendGrid C# Client
=============
Yet Another SendGrid Client for C#
## Create Account
```c#
var account = Account.Create("API_KEY");
```
## API Requests
```csharp
// Get Blocklist
var blockList = await account.Blocks.GetAsync(new GetBlocksParameter { Limit = 10 });
// Delete all from Bounces
await account.Bounces.DeleteAsync(new DeleteBouncesParameter { DeleteAll = true });
// Send Mail
var sendMail = new SendMailParameter
{
From = "from@example.com",
Text = "text content",
Html = "
html content
"
};
sendMail.To.Add("to@example.com");
await account.Mail.SendAsync(sendMail);
```
## Support APIs
- SMTP API (X-SMTP API)
- Web API v3
- WebHooks (Inbound Parse / Event v3)
## License
[Apache License 2.0](https://github.com/shibayan/sendgrid/blob/master/LICENSE)