Mitc.Email.Templates.Identity 1.0.0
Mitc.Email.Templates.Identity
Blazor-based email templates for ASP.NET Core Identity scenarios, built on Mitc.Email.Templating.
Templates
- ConfirmEmail — email address confirmation with a CTA button and fallback link.
- ResetPassword — password reset with a CTA button and fallback link.
- ResetPasswordCode — password reset code delivery (no link, monospace code block).
- TwoFactorCode — two-factor authentication code delivery.
Registration
builder.AddMitcIdentityMail<ApplicationUser>();
builder.AddMitcSendGridTransport(); // or another IMailTransport
This registers IdentityMailService<TUser> and wires it up as both IEmailSender<TUser> and IEmailSender, so ASP.NET Core Identity will use your templates automatically for confirmation and password reset flows.
Usage
public class AccountController(IdentityMailService mail)
{
public async Task SendConfirmation(string email, string url)
{
await mail.SendConfirmEmailAsync(new ConfirmEmailRequest
{
Subject = "Confirm your email",
RecipientAddress = email,
ConfirmationUrl = url
});
}
}
Configuration
{
"MailSettings": {
"ServiceMode": "SendAll",
"FromAddress": "no-reply@example.com",
"Branding": {
"AccentColor": "#0066cc",
"LogoUrl": "https://example.com/logo.png"
}
}
}
No packages depend on Mitc.Email.Templates.Identity.
.NET 8.0
- Mitc.Email.Templating (>= 1.0.0)
.NET 9.0
- Mitc.Email.Templating (>= 1.0.0)
.NET 10.0
- Mitc.Email.Templating (>= 1.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.0 | 4 | 2/20/2026 |