[jboss-user] [Installation, Configuration & DEPLOYMENT] - EMail events by SMTPAppender

indra_joy do-not-reply at jboss.com
Mon Jul 7 18:16:08 EDT 2008


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 at gmail.com"/>
param name="From" value="nobody at gmail.com"/>
param name="Subject" value="JBoss Sever Errors"/>
param name="SMTPHost" value="gmail-smtp.l.google.com"/>
param name="BufferSize" value="10"/>

appender> 

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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162966#4162966

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162966



More information about the jboss-user mailing list