Mitc.Email.SendGrid 1.0.0

Mitc.Email.SendGrid

SendGrid implementation of IMailTransport from Mitc.Email.Abstractions.

Configuration

Add SendGrid settings to your configuration (e.g. appsettings.json):

{
  "SendGrid": {
    "ApiKey": "SG.your-api-key-here"
  }
}

Registration

builder.AddMitcSendGridTransport();

Or register manually:

services.Configure<SendGridClientOptions>(configuration.GetSection("SendGrid"));
services.AddScoped<IMailTransport, SendGridMailTransport>();

Usage

await mailService.SendAsync(new SendEmailRequest(
    address: "user@example.com",
    subject: "Welcome",
    body: "<p>Hello!</p>"
));

No packages depend on Mitc.Email.SendGrid.

.NET 5.0

.NET 6.0

.NET 7.0

.NET 8.0

.NET 9.0

.NET 10.0

.NET Standard 2.0

Version Downloads Last updated
1.0.0 4 2/20/2026