You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Ionel GARDAIS <ig...@yahoo.fr> on 2004/01/21 11:59:12 UTC

unknown problem with SMTPAppender

Hi,

I am trying to use the SMTPAppender.

It is configured like that :

log4j.appender.mailer=org.apache.log4j.net.SMTPAppender
log4j.appender.mailer.from=user@domain.com
log4j.appender.mailer.to=user@domain.com
log4j.appender.mailer.subject=ProductPublisher
log4j.appender.mailer.SMTPHost=smtp@host.com
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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org