serilog-sinks-email icon indicating copy to clipboard operation
serilog-sinks-email copied to clipboard

The example code for Batch Email in README is wrong

Open SpaceOgre opened this issue 1 year ago • 1 comments

The example code in the readme is wrong, the To property in the EmailSinkOptions is a List<string> and therefor we can't assign a string to it.

https://github.com/serilog/serilog-sinks-email/blob/ac58ea6161142e2ab4f22df3e863eb36104c0c53/README.md?plain=1#L44

SpaceOgre avatar Apr 03 '24 09:04 SpaceOgre

Workaround : To = new List("[email protected]".Split(',')),

frankbret avatar Apr 03 '24 15:04 frankbret