0 Replies Latest reply on Jul 7, 2008 6:37 PM by Indrajoy

    SMTPAppender issue

    Indrajoy Newbie

      Hi Gurus,

      I am facing a problem in JBOSS 4.0.5GA in SMTPAppender issue. I want to send automatic email from JBOSS whenever required. In log4j I have also configured the same but it's not working.

      For your ref

      <!-- EMail events to an administrator -->
      appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
      errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
      param name="Threshold" value="ERROR"/>
      param name="To" value="indrajoy@gmail.com"/>
      param name="From" value="nobody@gmail.com"/>
      param name="Subject" value="JBoss Sever Errors"/>
      param name="SMTPHost" value="gmail-smtp.l.google.com"/>
      param name="BufferSize" value="10"/>


      I am kind of stuck over here. Can you please help.
      Apart from this do I need to do anything extra??

      My root is

      <!-- <appender-ref ref="CONSOLE"/> -->
      <appender-ref ref="FILE"/>
      <appender-ref ref="SMTP" />

      Also I want to schedule this as emails shud be sent after 15/30/45mins etc.

      Any help will be a real favor.

      Thanks Indrajoy