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
- Mitc.Email.Abstractions (>= 1.0.0)
- SendGrid (>= 9.29.3)
.NET 6.0
- Mitc.Email.Abstractions (>= 1.0.0)
- SendGrid (>= 9.29.3)
.NET 7.0
- Mitc.Email.Abstractions (>= 1.0.0)
- SendGrid (>= 9.29.3)
.NET 8.0
- Mitc.Email.Abstractions (>= 1.0.0)
- SendGrid (>= 9.29.3)
.NET 9.0
- Mitc.Email.Abstractions (>= 1.0.0)
- SendGrid (>= 9.29.3)
.NET 10.0
- Mitc.Email.Abstractions (>= 1.0.0)
- SendGrid (>= 9.29.3)
.NET Standard 2.0
- Mitc.Email.Abstractions (>= 1.0.0)
- SendGrid (>= 9.29.3)
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.0 | 4 | 2/20/2026 |