Soenneker.Email.Support
4.0.316
Prefix Reserved
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
<PackageReference Include="Soenneker.Email.Support" Version="4.0.316" />
<PackageVersion Include="Soenneker.Email.Support" Version="4.0.316" />
<PackageReference Include="Soenneker.Email.Support" />
paket add Soenneker.Email.Support --version 4.0.316
#r "nuget: Soenneker.Email.Support, 4.0.316"
#:package Soenneker.Email.Support@4.0.316
#addin nuget:?package=Soenneker.Email.Support&version=4.0.316
#tool nuget:?package=Soenneker.Email.Support&version=4.0.316
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 | Versions 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. |
-
net10.0
- Soenneker.Email.Dispatcher (>= 4.0.417)
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 |
Add interface inheritdoc references