Identity.Base.Email.SendGrid
0.7.12
dotnet add package Identity.Base.Email.SendGrid --version 0.7.12
NuGet\Install-Package Identity.Base.Email.SendGrid -Version 0.7.12
<PackageReference Include="Identity.Base.Email.SendGrid" Version="0.7.12" />
<PackageVersion Include="Identity.Base.Email.SendGrid" Version="0.7.12" />
<PackageReference Include="Identity.Base.Email.SendGrid" />
paket add Identity.Base.Email.SendGrid --version 0.7.12
#r "nuget: Identity.Base.Email.SendGrid, 0.7.12"
#:package Identity.Base.Email.SendGrid@0.7.12
#addin nuget:?package=Identity.Base.Email.SendGrid&version=0.7.12
#tool nuget:?package=Identity.Base.Email.SendGrid&version=0.7.12
Identity.Base.Email.SendGrid
Comprehensive documentation is available at docs/packages/identity-base-email-sendgrid/index.md. The README below is a condensed quick start.
Optional SendGrid integration for Identity Base. This package provides:
SendGridEmailSender, anITemplatedEmailSenderimplementation that dispatches transactional emails via SendGrid.SendGridOptionsandSendGridTemplateOptionsconfiguration types.- Extension methods to register the sender for both raw
IServiceCollectionscenarios (AddSendGridEmailSender) and theIdentityBaseBuilderfluent API (UseSendGridEmailSender).
Getting Started
- Add the package to your host:
dotnet add package Identity.Base.Email.SendGrid - Register the sender when configuring services:
builder.Services.AddSendGridEmailSender(builder.Configuration); // or if you already have an IdentityBaseBuilder instance identityBuilder.UseSendGridEmailSender(); - Configure the
SendGridsection in your appsettings (keys shown with example values):{ "SendGrid": { "Enabled": true, "ApiKey": "your-sendgrid-api-key", "FromEmail": "noreply@example.com", "FromName": "Identity Base", "Templates": { "Confirmation": "d-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "PasswordReset": "d-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "MfaChallenge": "d-cccccccccccccccccccccccccccccccc" } } }
If SendGrid.Enabled is false the sender becomes a no-op, allowing you to disable outbound email in lower environments without changing code.
See docs/guides/sendgrid-email-sender.md in the repository root for configuration guidance, template setup, and troubleshooting tips.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Identity.Base (>= 0.7.12)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.