Yet Another SendGrid Client for C#
C#
Permalink
Failed to load latest commit information.
SendGridSharp.Tests
SendGridSharp
.gitattributes
.gitignore
README.md
SendGridSharp.sln

README.md

SendGridSharp

Yet Another SendGrid Client for C#

Usage

// Use API Key
var client = new SendGridClient("API_KEY");
// use SendGrid credential
//var client = new SendGridClient(new NetworkCredential("USERNAME", "PASSWORD"));

var message = new SendGridMessage();

message.To.Add("****@****.com");
message.From = "****@****.com";

message.Header.AddSubstitution("-name-", "customer");

message.Subject = "Dear -name- ";
message.Html = "<p>html message</p>";
message

client.Send(message);