Search code examples
.netenterprise-library

Using EntLib logging app block to send email using auth/secure smtp server


The entlib logging application block doesn't allow for setting username/password or useSSL in the EmailTraceListenerData config type, is there a common solution for this?


Solution

  • I believe you have to do a custom trace listener for that. Here's a slightly older example of exactly what you're trying to do. But, the logging block has been around for ages, so that example might just work. You can vote for EntLib5 features here. :)