🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

SendGridSharp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

SendGridSharp

Simplify SendGrid SMTP / REST v2 API Client for C# / .NET Standard

1.4.1
NuGet
Version published
Maintainers
1
Created
Source

SendGridSharp

Build Downloads NuGet License

Simplify SendGrid SMTP / REST v2 API Client for C# / .NET Standard

Install

Install-Package SendGridSharp
dotnet add package SendGridSharp

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.Text = "text message";

client.Send(message);

License

This project is licensed under the MIT License

Keywords

mail

FAQs

Package last updated on 13 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts