Kck.Messaging.Abstractions 5.0.0

dotnet add package Kck.Messaging.Abstractions --version 5.0.0
                    
NuGet\Install-Package Kck.Messaging.Abstractions -Version 5.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Kck.Messaging.Abstractions" Version="5.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kck.Messaging.Abstractions" Version="5.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Kck.Messaging.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Kck.Messaging.Abstractions --version 5.0.0
                    
#r "nuget: Kck.Messaging.Abstractions, 5.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Kck.Messaging.Abstractions@5.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Kck.Messaging.Abstractions&version=5.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Kck.Messaging.Abstractions&version=5.0.0
                    
Install as a Cake Tool

Kck.Messaging.Abstractions

Email messaging abstractions for transactional email delivery — IEmailProvider with EmailMessage, EmailRecipient, and EmailAttachment models compatible with MailKit, SendGrid, or Amazon SES.

Installation

dotnet add package Kck.Messaging.Abstractions

Quick Start

using Kck.Messaging.Abstractions;

// Program.cs — a provider (MailKit, SendGrid or AmazonSes); each registers IEmailProvider
builder.Services.AddKckMessagingMailKit(opt =>
{
    opt.Host = builder.Configuration["Smtp:Host"]!;
    opt.UserName = builder.Configuration["Smtp:User"];
    opt.Password = builder.Configuration["Smtp:Password"];
});

// Send through IEmailProvider
public class OrderConfirmationHandler(IEmailProvider email)
{
    public Task SendConfirmationAsync(Order order, Stream invoicePdf, CancellationToken ct) =>
        email.SendAsync(new EmailMessage
        {
            From = "shop@example.com",
            Recipients = [new EmailRecipient(order.CustomerEmail)],
            Subject = $"Order #{order.Id} confirmed",
            Body = $"<h1>Thank you!</h1><p>Your order total: {order.Total:C}</p>",
            IsHtml = true,
            Attachments =
            [
                new EmailAttachment { FileName = "invoice.pdf", Content = invoicePdf, ContentType = "application/pdf" }
            ]
        }, ct);
}

Configuration

Property Description Default
Messaging:Email:Host SMTP host or provider endpoint —
Messaging:Email:Port SMTP port 587
Messaging:Email:FromAddress Default sender address —
Messaging:Email:FromName Default sender display name —

Resources

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Kck.Messaging.Abstractions:

Package Downloads
Kck.Messaging.AmazonSes

Amazon Simple Email Service v2-backed IEmailProvider. Supports explicit AWS credentials or IAM role authentication with SES v2 BulkEmail API for high-volume sending. Registered via AddKckMessagingAmazonSes().

Kck.Messaging.SendGrid

Twilio SendGrid-backed IEmailProvider for transactional email. Supports HTML/plain-text bodies, attachments, and multiple recipients via SendGrid's v3 Mail API. Registered via AddKckMessagingSendGrid().

Kck.Bundle.WebApi

Opinionated ASP.NET Core WebAPI starter pack. Registers Serilog, in-memory caching, the JWT token service, Argon2 hashing, InMemory event bus, health checks, rate limiting, security headers, CORS, and global exception handling in a single AddKckWebApiDefaults() call.

Kck.Messaging.MailKit

MailKit-backed IEmailProvider for SMTP email delivery with connection pooling (SmtpConnectionPool). Supports SSL/TLS, STARTTLS, and configurable pool size. Registered via AddKckMessagingMailKit().

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0 308 11/2/2026
4.8.0 616 10/31/2026
Loading failed