This library allows you to quickly and easily use the SendGrid Web API v3 via C# with .NET. Version 9.X.X+ of this library provides full support for all SendGrid Web API v3 endpoints, including the new v3 /mail/send.
We want this library to be community driven, and SendGrid led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create issues and pull requests or simply upvote or comment on existing issues or pull requests. For updates to this library, see our CHANGELOG and releases. Subscribe to email release notifications to receive emails about releases and breaking changes.
Install-Package SendGrid
- Run CMD as administrator
-
setx SENDGRID_API_KEY "YOUR_API_KEY"
Get
var apiKey = Environment.GetEnvironmentVariable("SENDGRID_API_KEY");
Set Environment Variable
var setKey = Environment.SetEnvironmentVariable("SENDGRID_API_KEY", "YOUR_API_KEY");