Exactly. It seems that I must create a new class MySMTPAppender extending SMTPAppender :(
-----Message d'origine----- De : James Stauffer [mailto:[EMAIL PROTECTED] Envoyé : mardi 22 août 2006 18:21 À : Log4J Users List Objet : Re: SMTPAppender : how to specify the port ? The values that you can set correspond to the set* methods so look at the API. I don't see a method to set the port. On 8/22/06, DeMZed <[EMAIL PROTECTED]> wrote: > Hi ! > > I use this appender : > <appender name="WSE_SMTP" class="org.apache.log4j.net.SMTPAppender"> > <param name="Threshold" value="FATAL"/> > <param name="To" value="****"/> > <param name="From" value="****"/> > <param name="Subject" value="One Fatal Error"/> > <param name="SMTPHost" value="127.0.0.1"/> > <param name="BufferSize" value="10"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> > </layout> > </appender> > > My SMTP daemon is listening on port 250, not 25. > > What is the param name for the port ? I tryed SMTPPort but it does > work, and my searches gave me any result... > > Thanks :) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- James Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _____ Antivirus avast! <http://www.avast.com> : message Sortant sain. Base de donnees virale (VPS) : 0634-0, 21/08/2006 Analyse le : 22/08/2006 21:06:01 avast! - copyright (c) 1988-2006 ALWIL Software. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
