serilog / serilog-sinks-email

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

How to configure appsetting.json for Email to use running account credentials #138

Closed jlrouzies-mantu closed 1 month ago

jlrouzies-mantu commented 1 month ago

Hello,

With NLog, it is relatively easy to use the current user / NTLM / Kerberos to do SMTP.

But I can't figure how to do that with Serilog in appsettings.json, any idea?

bartelink commented 1 month ago

Might be worth asking on SO and posting a link to that here and closing - these repos have low watcher counts and the issues are generally used for confirmed issues rathe than usage questions (and most watchers also have a serilog tag search on SO) - the net result is a higher likelihood of a quick answer that's googleable for other people with the same question

bartelink commented 1 month ago

Closing as dup of https://github.com/serilog/serilog-sinks-email/issues/136#issue-2418848541

I submit the fact that the existing issue is open for 3 weeks with no answer as evidence that it's the better of two evils for these usage questions to live on SO

Hopefully someone can circle back and post a PR to add a usage sample at the point one has been figured out and verified