Hi Raziel, I tried to use another SMTP server but I'm still getting no mails.
sendmail's traffic is not logger so I looked at netstat to see if a connexion was established from my host. I see nothing ! Again, when connecting using telnet, I see the connection established and I can send mail by command line Are there any packages other than activation.jar ans mail.jar I need to get the SMTPAppender works ? Thanks, Ionel --- Raziel Steinmetz <[EMAIL PROTECTED]> a �crit : > ionel, > > I'm using the SMTPAppender and it is working very > well (on both windows and > Sun OS). if you don't get any exception from log4j > then I would go and check > your SMTP server log file to see if it got the email > to send, it could be > many reasons why you didn't got the email such as: > invalid email address, or > maybe the SMTP server queued your email for some > reason. > > SMTPAppender will send you an email as soon as it > gets a message with the > level that you defined (I think that the default > level is ERROR) the Buffer > size is the amount of prior messages that you will > see in the email - which > is great for troubleshooting, so I would recommend > to set it to much higher > then 1. > > Good luck, > Raz Steinmetz. > > -----Original Message----- > From: Ionel GARDAIS [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 21, 2004 5:59 AM > To: [EMAIL PROTECTED] > Subject: 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 > [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] > _________________________________________________________________ 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]
