How to setup seriLog.sinks.email with network credential
Hi, I'm trying to set up Serilog to send email + file logging. I use mailjet as my email server and I'm not able to set it up correctly with networkcredentials. Here is my config (with personnal data removed).
I don,t knw what I'm doing wrong with this. If i use another smtp (Email.mailServer) that doesn't need credentials, it works, but i can't use this one in production.
How to setup seriLog.sinks.email with network credential
Hi, I'm trying to set up Serilog to send email + file logging. I use mailjet as my email server and I'm not able to set it up correctly with networkcredentials. Here is my config (with personnal data removed).
I don,t knw what I'm doing wrong with this. If i use another smtp (Email.mailServer) that doesn't need credentials, it works, but i can't use this one in production.
hi, did you find how to provide credentials for Email logging? I have the same issue.
I'm just trying the same and no luck...
For future reference:
I've used the Nlog sink and setup the emails in there.
We used the following config settings: Serilog.user.config:
Web.config: We use a appsetting to check on what environment the error is thrown
<add key="Environment" value="Environment" />
Register the nlog config in configsections:
Hope this will help anyone.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.