Perfect for real-time critical alerts, with full HTML template customization, configurable throttling, and secure SMTP (SSL/TLS) delivery.
$ dotnet add package CSharpEssentials.LoggerHelper.Sink.Email
A flexible HTML Email sink for CSharpEssentials.LoggerHelper, designed for real-time critical alerts with full customization.
Error and Fatal events.dotnet add package CSharpEssentials.LoggerHelper.Sink.Email
"SerilogOption": {
"Email": {
"From": "alerts@example.com",
"Host": "smtp.gmail.com",
"Port": 587,
"To": "ops-team@example.com",
"Username": "your-username",
"Password": "your-password",
"EnableSsl": true,
"TemplatePath": "Templates/email-template-default.html",
"ThrottleInterval": "00:01:00"
}
}
Try it live with the CSharpEssentials.Extensions Demo – a ready-to-run project showcasing the Email sink together with other sinks (File, SQL, Telegram, Telemetry).