HI I have no issue using log4net in winform app to send error email to myself when i test the app at my own workstation. However, when i test the same code at my company and my client pc, it just failed sending out error email. I think for company it has been blocked by the proxy which i can understand. However, for my client whom is using window7 for personal use also failed to send out email and this really surprised me.
Kindly advice
This is the code i used.
<log4net>
<!-- tested success on hotmail with port 587 -->
<appender name="smtpAppender" type="log4net.Appender.SmtpAppender">
<to value="xxx@hotmail.com" />
<from value="xxx@hotmail.com" />
<subject value="Error Report" />
<authentication value="basic" />
<smtpHost value="smtp.live.com" />
<username value="xxx@hotmail.com" />
<password value="xxx" />
<port value="587" />
<bufferSize value="512" />
<lossy value="true" />
<evaluator type="log4net.Core.LevelEvaluator">
<threshold value="ERROR" />
</evaluator>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%newline%date [%thread] %-5level %logger [%property{NDC}] - %message%newline%newline%newline" />
</layout>
</appender>
<root>
<level value="ERROR" />
<appender-ref ref="smtpAppender" />
</root>