Soenneker.Email.Support 11.0.445

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Email.Support --version 11.0.445
                    
NuGet\Install-Package Soenneker.Email.Support -Version 11.0.445
                    
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="Soenneker.Email.Support" Version="11.0.445" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Email.Support" Version="11.0.445" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Email.Support" />
                    
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 Soenneker.Email.Support --version 11.0.445
                    
#r "nuget: Soenneker.Email.Support, 11.0.445"
                    
#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 Soenneker.Email.Support@11.0.445
                    
#: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=Soenneker.Email.Support&version=11.0.445
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Email.Support&version=11.0.445
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Email.Support

Sends a subject and HTML body to the application's configured support address through IEmailDispatcher.

Install

dotnet add package Soenneker.Email.Support

Configuration

{
  "Email": {
    "SupportAddress": "support@example.com"
  }
}

Email:SupportAddress is required and is read for each send. The dispatcher and selected sender also require their own configuration.

Registration

Register an IEmailSender implementation first, then the support utility:

using Soenneker.Email.Sender.Registrars;
using Soenneker.Email.Support.Registrars;

services.AddEmailSenderAsSingleton();
services.AddEmailSupportUtilAsSingleton();

AddEmailSupportUtilAsSingleton() registers the support utility and dispatcher as singletons. AddEmailSupportUtilAsScoped() registers both as scoped. Match the chosen sender lifetime: a singleton dispatcher must not capture a scoped sender.

The dispatcher constructor requires an IEmailSender even when queue routing is enabled, so a sender registration is always necessary.

Send to support

using Soenneker.Email.Support.Abstract;

IEmailSupportUtil support = serviceProvider.GetRequiredService<IEmailSupportUtil>();

await support.Send(
    "Import failed",
    "<p>The nightly customer import failed after 3 attempts.</p>",
    cancellationToken);

The utility creates an HTML EmailMessage, puts bodyHtml in the bodyText template token, uses normal priority, and identifies the current machine as the sender. Actual delivery is immediate or queued according to Email:UseQueue.

The HTML is not sanitized or encoded by this utility. Encode or sanitize untrusted values before including them. Completion follows dispatcher semantics: queued mode means accepted by the queue transport; direct mode means accepted by the sender. Cancellation cannot retract a message already queued or delivered.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Email.Support:

Package Downloads
Soenneker.Alerter.Util

A utility library for alert related operations and abstraction over other notification services

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.447 118 11/19/2026
11.0.446 54 11/19/2026
11.0.445 70 11/19/2026
11.0.444 75 11/19/2026
11.0.443 52 11/19/2026
11.0.442 42 11/19/2026
11.0.441 69 11/18/2026
11.0.440 64 11/18/2026
11.0.439 130 11/16/2026
11.0.438 103 11/15/2026
11.0.437 99 11/15/2026
11.0.436 129 11/15/2026
11.0.435 169 11/12/2026
11.0.434 113 11/12/2026
11.0.433 170 11/11/2026
11.0.432 114 11/11/2026
11.0.431 101 11/11/2026
11.0.430 103 11/11/2026
11.0.429 117 11/11/2026
11.0.428 90 11/11/2026
Loading failed

Updated Soenneker.Email.Dispatcher to 11.0.552