Open SpaceOgre opened 6 months ago
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.
EmailSinkOptions
List<string>
https://github.com/serilog/serilog-sinks-email/blob/ac58ea6161142e2ab4f22df3e863eb36104c0c53/README.md?plain=1#L44
Workaround : To = new List("support@example.com".Split(',')),
The example code in the readme is wrong, the To property in the
EmailSinkOptions
is aList<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