You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Ron Grabowski <ro...@yahoo.com> on 2007/04/21 04:18:30 UTC

"A log4net appender that uses SmtpClient" blog post about SmtpClientSmtpAppender for sending SSL mail in 2.0

Ted Graham posted code for a SmtpClientSmtpAppender that extends the SmtpAppender by using the SmtpClient from .NET 2.0 to communicate over SSL with a mail server:

 

http://weblogs.asp.net/tgraham/archive/2007/04/20/a-log4net-appender-that-uses-smtpclient.aspx



An additional option would be to be to send all the log messages as a file attachment (and/or zipped file attachment) and only include the most recent message in the body of the email.