You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "DietzeC (via GitHub)" <gi...@apache.org> on 2026/07/14 14:19:38 UTC

[I] SmtpAppender uses not recomended SmptClient (logging-log4net)

DietzeC opened a new issue, #300:
URL: https://github.com/apache/logging-log4net/issues/300

   aa
   
   > _Important
   > We don't recommend that you use the SmtpClient class for new development because SmtpClient doesn't support many modern protocols. Use MailKit or other libraries instead. For more information, see SmtpClient shouldn't be used._
   [https://learn.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient?view=net-10.0#remarks](url)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "DietzeC (via GitHub)" <gi...@apache.org>.
DietzeC commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-5189853022

   @FreeAndNil 
   This week is tough, but I've scheduled a test for Monday.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-4981698140

   Thanks for the response. 
   Until when do you need a "solution"? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "DietzeC (via GitHub)" <gi...@apache.org>.
DietzeC commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-4981315146

   Thanks for the reply.
   
   We can't reproduce the specific error in log4net, but we've noticed that emails are being sent from the same application via MailKit with a similar configuration. Problems have been piling up lately. Some of them have occurred after updating to newer versions of Exchange Server. We suspect this is related to SSL/TLS encryption.
   
   We're also considering developing our “own” SmtpAppender with MailKit, but we wanted to ask here first.
   
   Perhaps a forth option would be to create a log4net.mailkit package in addition to the standard log4net package. That way, we wouldn’t introduce a dependency into the main project but could still provide a new MailKit version.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-5167693633

   @DietzeC can you test #302?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-4971882521

   @DietzeC we are aware of the problem. 
   The thing is that Mailkit would be a new dependency (or better two). As a base library we don't want new dependencies. 
   We could:
   - move SmtpAppender to a new assembly (similar to https://github.com/apache/logging-log4net/discussions/267#discussioncomment-17003856)
   - add an extension point where one could provide a custom mail client 
   - accept the Mailkit dependency 
   
   @fluffynuts @gdziadkiewicz wdyt? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil closed issue #300: SmtpAppender uses not recomended SmptClient
URL: https://github.com/apache/logging-log4net/issues/300


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-5375572649

   @DietzeC see
   * https://github.com/apache/logging-log4net/releases/tag/rel%2F3.4.0
   * https://www.nuget.org/packages/log4net/3.4.0
   * https://www.nuget.org/packages/log4net.Ext.Mail/3.4.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "DietzeC (via GitHub)" <gi...@apache.org>.
DietzeC commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-5254674845

   @FreeAndNil*
   The first test went well. The email sending worked as expected. I have another installation at a client’s site later this week, where I’ll be able to test it as well.
   
   I noticed that the assembly doesn’t have the System.CLSCompliant attribute. It’s not a big problem, but it might be worth adjusting.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "DietzeC (via GitHub)" <gi...@apache.org>.
DietzeC commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-4989051352

   At this point, we still consider this issue to be an inconvenience, but not a problem.
    
   However, to avoid accumulating further technical debt, we would like to see a solution within the next four to six weeks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-4989181306

   @fluffynuts @DietzeC thanks for your feedback. I will create something like log4net.Ext.Mail after my vacation. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "DietzeC (via GitHub)" <gi...@apache.org>.
DietzeC commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-4989204015

   @FreeAndNil Thank you in advance, and enjoy your vacation!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-5188779098

   @DietzeC you can test with https://github.com/apache/logging-log4net/releases/tag/rc%2F3.4.0-preview.1
   * https://www.nuget.org/packages/log4net/3.4.0-preview.1
   * https://www.nuget.org/packages/log4net.Ext.Mail/3.4.0-preview.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "fluffynuts (via GitHub)" <gi...@apache.org>.
fluffynuts commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-4988883041

   my 2c:
   
   If the .net smtp client is both deprecated and doesn't work reliably, drop it completely and introduce a satellite appender package using something better (like mailkit). I'd mark it for deprecation and remove it completely in the next major version.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-5257160637

   @DietzeC thanks for the feedback. 
   I will adjust the CLS Compliance for the release version. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "fluffynuts (via GitHub)" <gi...@apache.org>.
fluffynuts commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-5000112358

   > [@fluffynuts](https://github.com/fluffynuts) [@DietzeC](https://github.com/DietzeC) thanks for your feedback. I will create something like log4net.Ext.Mail after my vacation.
   
   Always stepping up @FreeAndNil 👏 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-5257255202

   @DietzeC thanks for the feedback. 
   I will adjust the CLS Compliance for the release version. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] SmtpAppender uses not recomended SmptClient (logging-log4net)

Posted by "FreeAndNil (via GitHub)" <gi...@apache.org>.
FreeAndNil commented on issue #300:
URL: https://github.com/apache/logging-log4net/issues/300#issuecomment-5318165229

   @DietzeC the CLS Compliance was fixed in #307 
   Was the test at the client successful?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org