CSharpEssentials.LoggerHelper.Sink.Email
5.2.8
See the version list below for details.
dotnet add package CSharpEssentials.LoggerHelper.Sink.Email --version 5.2.8
NuGet\Install-Package CSharpEssentials.LoggerHelper.Sink.Email -Version 5.2.8
<PackageReference Include="CSharpEssentials.LoggerHelper.Sink.Email" Version="5.2.8" />
<PackageVersion Include="CSharpEssentials.LoggerHelper.Sink.Email" Version="5.2.8" />
<PackageReference Include="CSharpEssentials.LoggerHelper.Sink.Email" />
paket add CSharpEssentials.LoggerHelper.Sink.Email --version 5.2.8
#r "nuget: CSharpEssentials.LoggerHelper.Sink.Email, 5.2.8"
#:package CSharpEssentials.LoggerHelper.Sink.Email@5.2.8
#addin nuget:?package=CSharpEssentials.LoggerHelper.Sink.Email&version=5.2.8
#tool nuget:?package=CSharpEssentials.LoggerHelper.Sink.Email&version=5.2.8
CSharpEssentials.LoggerHelper.Sink.Email
SMTP email alerts with HTML templates and throttling for CSharpEssentials.LoggerHelper.
Part of the CSharpEssentials.LoggerHelper ecosystem — install only the sinks you need.
Install
dotnet add package CSharpEssentials.LoggerHelper
dotnet add package CSharpEssentials.LoggerHelper.Sink.Email
Quick Setup — JSON
{
"LoggerHelper": {
"ApplicationName": "MyApp",
"Routes": [
{ "Sink": "Email", "Levels": ["Error", "Fatal"] }
],
"Sinks": {
"Email": {
"From": "alerts@myapp.com",
"To": "team@myapp.com",
"Host": "smtp.gmail.com",
"Port": 587,
"Username": "alerts@myapp.com",
"Password": "app-password",
"EnableSsl": true
}
}
}
}
builder.Services.AddLoggerHelper(builder.Configuration);
Quick Setup — Fluent API
builder.Services.AddLoggerHelper(b => b
.WithApplicationName("MyApp")
.AddRoute("Email", LogEventLevel.Error, LogEventLevel.Fatal)
.ConfigureEmail(e => {
e.From = "alerts@myapp.com";
e.To = "team@myapp.com";
e.Host = "smtp.gmail.com";
e.Port = 587;
e.Username = "alerts@myapp.com";
e.Password = "app-password";
})
);
Configuration Options
| Property | Type | Default | Description |
|---|---|---|---|
From |
string |
"" |
Required. Sender email address |
To |
string |
"" |
Required. Recipient email address (comma-separated for multiple) |
Host |
string |
"" |
Required. SMTP server hostname |
Port |
int |
587 |
SMTP server port |
Username |
string? |
null |
SMTP authentication username |
Password |
string? |
null |
SMTP authentication password |
EnableSsl |
bool |
true |
Enable SSL/TLS for SMTP connection |
TemplatePath |
string? |
null |
Path to a custom HTML email template |
ThrottleInterval |
TimeSpan? |
null |
Minimum interval between emails to prevent flooding |
Required:
Host,FromandTo. If theInvalidOperationException), LoggerHelper records it as not configured (FAILED in the Dashboard/MCP) and the other sinks keep working.
The sink includes a built-in HTML template with color-coded log levels. Provide your own template via TemplatePath using placeholders like {{Timestamp}}, {{Level}}, {{Message}}, {{ApplicationName}}.
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- CSharpEssentials.LoggerHelper (>= 5.2.8)
-
net8.0
- CSharpEssentials.LoggerHelper (>= 5.2.8)
-
net9.0
- CSharpEssentials.LoggerHelper (>= 5.2.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.5.0 | 126 | 10/25/2026 |
| 5.4.0 | 109 | 10/16/2026 |
| 5.3.3 | 108 | 10/16/2026 |
| 5.3.2 | 104 | 10/11/2026 |
| 5.3.1 | 111 | 10/10/2026 |
| 5.3.0 | 107 | 10/10/2026 |
| 5.2.11 | 104 | 10/9/2026 |
| 5.2.10 | 112 | 10/7/2026 |
| 5.2.9 | 109 | 10/6/2026 |
| 5.2.8 | 113 | 10/6/2026 |
| 5.2.7 | 99 | 10/6/2026 |
| 5.2.6 | 137 | 8/31/2026 |
| 5.2.4.1 | 131 | 8/27/2026 |
| 5.2.4 | 138 | 8/25/2026 |
| 5.2.3 | 129 | 8/25/2026 |
| 5.2.2.9 | 183 | 7/11/2026 |
| 5.2.2.8 | 137 | 7/11/2026 |
| 5.2.2.7 | 136 | 7/10/2026 |
| 5.2.2.6 | 148 | 7/6/2026 |
| 5.2.2.5 | 146 | 7/5/2026 |