Dear Mathew,

1) fill the SMTP appender with values (you did this)
SMTPAppender mySMTPApp=new SMTPAppender();
mySMTPApp.setSubject("subject");
etc.

2) add the SMTP appender to your category:
Category myCat=Category.getInstance ("dummy");
myCat.addAppender(mySMTPApp);

3)Log to the category where the appender is assigned to:
myCat.debug("message");

Hope this helps...
Thilo

-----Original Message-----
From: Mathew, Bindhu [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 18. Juli 2001 17:25
To: 'LOG4J Users Mailing List'
Subject: Send mail -SMTPAppender 


  
Hi,

  I am trying to write a pgm for sending(notify via) an e-mail when an
error/fatal occurs. I couldn't configure it out fully. I am attaching my
source code. I know I miss something. Could someone help me to make it
runnable.

thanx,
Mathew.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to