Hi,

I am trying to use the SMTPAppender.

It is configured like that :

log4j.appender.mailer=org.apache.log4j.net.SMTPAppender
[EMAIL PROTECTED]
[EMAIL PROTECTED]
log4j.appender.mailer.subject=ProductPublisher
[EMAIL PROTECTED]
log4j.appender.mailer.bufferSize=1
log4j.appender.mailer.layout=org.apache.log4j.PatternLayout
log4j.appender.mailer.layout.ConversionPattern=%d [%t]
%-5p %c - %m%n


but I receive no mail.
The mail.jar and activation.jar are present (log4j
does not complain)
The smtp host is accessible (can send mail via telnet
commands)
The mailer appender is declared for the rootLogger.
Turning log4j.debug=true does not help.

I try to modify bufferSize to larger values but it
does not change a thing.

What is wrong ? Does anybody succeed in using the
SMTPAppender ?
BTW, about the bufferSize, does the mail is only sent
when the buffer is full or is it sent every time a log
message arrive ?

thanks
ionel

_________________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

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

Reply via email to