serilog / serilog-sinks-email

A Serilog sink that writes events to SMTP email
Apache License 2.0
72 stars 68 forks source link

The example code for Batch Email in README is wrong #129

Open SpaceOgre opened 6 months ago

SpaceOgre commented 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.

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

frankbret commented 6 months ago

Workaround : To = new List("support@example.com".Split(',')),