serilog-sinks-email
serilog-sinks-email copied to clipboard
A Serilog sink that writes events to SMTP email
`EmailSinkOptions` has a property `Subject` of type `ITextFormatter`. [`IBatchTextFormatter`](https://github.com/serilog/serilog-sinks-email/blob/dev/src/Serilog.Sinks.Email/Sinks/Email/IBatchTextFormatter.cs) specifies in its summary xdoc: > Pass an instance for the argument when configuring the sink. I implemented a class `SerilogEmailSubject`...
Fix to allow to set Subject or Body using JSON configuration when using overload that accepts EmailSinkOptions and PeriodicBatchingSinkOptions
It does not seem to be possible to set subject or body when using the overload that accepts EmailSinkOptions and PeriodicBatchingSinkOptions when using JSON configuration. Program.cs ``` using Microsoft.Extensions.Configuration; using...
by browsing through source code and other issues I have figured out that I can add Serilog Mail sink in appsettings as follows: ``` "Name": "Email", "Args": { "From": "[email protected]",...
The example code in the readme is wrong, the To property in the `EmailSinkOptions` is a `List` and therefor we can't assign a string to it. https://github.com/serilog/serilog-sinks-email/blob/ac58ea6161142e2ab4f22df3e863eb36104c0c53/README.md?plain=1#L44
I have this configuration: ``` batchingOptions: new() { BatchSizeLimit = 100, Period = TimeSpan.FromMinutes(10), EagerlyEmitFirstEvent = true } ``` I expect, that first message will be sended immediately due settings...
My company's devops uses some tool to validate the nuget packages and it is throwing an error on "3.0.0-dev-00166" I believe it would work with the best practices versioning of...
My project settings: ``` net6.0 10 win-x64 ``` SelfLog.Enable(Console.Error) returns the following message: 2022-01-12T13:41:58.1815631Z Exception while emitting periodic batch from Serilog.Sinks.PeriodicBatching.PeriodicBatchingSink: System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task MailKit.MailTransport.Se ndAsync(MimeKit.MimeMessage, System.Threading.CancellationToken, MailKit.ITransferProgress)'....
The current email sink is using `MailKit 2.6.` The newer `MailKit 3.0` version has some upgrades, including server responses when an email is sent. We had to downgrade our MailKit...
Hi, I tried this way but no emails were sent, is there a way to send it to multiple recipients? ``` { "Name": "CustomEmail", "Args": { "ConnectionInfo": { "NetworkCredentials": {...