Ron, SMTP Appender works on my machine using our internal SMTP host but
when I deploy my code on a hosted server (outside of our environment)
that is using different SMTP host, it does not work.

Do we need to have Exchange CDO installed on the hosted server? Any
other requirements that I should check for?

Thanks for your help.

Usman

-----Original Message-----
From: Ron Grabowski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 9:55 AM
To: Log4NET User
Subject: RE: LOG4NET - SMTP Appender Not Working

I used nDumbster:

 http://ndumbster.sourceforge.net/

to setup a mock SMTP server on my system and I was able to see log
messages:

 <appender name="SmtpAppender" type="log4net.Appender.SmtpAppender">
  <to value="[EMAIL PROTECTED]" />
  <from value="[EMAIL PROTECTED]" />
  <subject value="SmtpAppender Subject" />
  <smtpHost value="127.0.0.1" />
  <bufferSize value="1" />
  <layout type="log4net.Layout.SimpleLayout" />
  <filter type="log4net.Filter.LevelRangeFilter">
   <levelMin value="FATAL"/>
   <levelMax value="FATAL"/>
  </filter>
 </appender>

This is what nDumbster processed:

 thread-index: AcXEM8in/PUSDjTMRYGRv0fJOIQJAQ==
 Thread-Topic: SmtpAppender Subject
 From: <[EMAIL PROTECTED]>
 To: <[EMAIL PROTECTED]>
 Subject: SmtpAppender Subject
 Date: Wed, 28 Sep 2005 09:51:53 -0400
 Message-ID: <[EMAIL PROTECTED]>
 MIME-Version: 1.0
 Content-Type: text/plain;
 Content-Transfer-Encoding: 7bit
 X-Mailer: Microsoft CDO for Exchange 2000
 Content-Class: urn:content-classes:message
 Importance: normal
 Priority: normal
 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180

 FATAL - Hello World

--- Usman Uppal <[EMAIL PROTECTED]> wrote:

> Here is the Config file.
> Usman

Reply via email to