Soenneker.Email.Support 4.0.316

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 4.0.316
                    
NuGet\Install-Package Soenneker.Email.Support -Version 4.0.316
                    
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="4.0.316" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Email.Support" Version="4.0.316" />
                    
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 4.0.316
                    
#r "nuget: Soenneker.Email.Support, 4.0.316"
                    
#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@4.0.316
                    
#: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=4.0.316
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Email.Support&version=4.0.316
                    
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 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.

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
4.0.322 0 9/4/2026
4.0.321 0 9/4/2026
4.0.320 0 9/4/2026
4.0.319 37 9/4/2026
4.0.318 34 9/4/2026
4.0.317 40 9/4/2026
4.0.316 46 9/4/2026
4.0.315 100 9/1/2026
4.0.314 80 9/1/2026
4.0.313 94 9/1/2026
4.0.312 92 9/1/2026
4.0.311 98 9/1/2026
4.0.310 103 8/31/2026
4.0.309 127 8/31/2026
4.0.308 102 8/31/2026
4.0.307 125 8/30/2026
4.0.306 121 8/30/2026
4.0.305 109 8/30/2026
4.0.303 109 8/29/2026
4.0.302 154 8/28/2026
Loading failed

Add interface inheritdoc references