[jboss-user] [Installation, Configuration & Deployment] - Re: SMTPAppender

rodedh do-not-reply at jboss.com
Wed Sep 16 06:34:36 EDT 2009


Woops :-)...
I configured an SMTPAppender I enabled SMTPDebug and from the logs I always see that an attempt to create connection via localhost, 25 isSSL false occurs. No need to mention that I am using a SMTPHost attribute which is not localhost... 
I dont find where this behavior can be changed. 
Here is my appender: 

  |  <appender name="EMAIL" class="org.apache.log4j.net.SMTPAppender">
  | 	  <param name="SMTPHost" value="smtp.gmail.com" />
  |         <param name="From" value="fromUser at gmail.com" />
  |         <param name="To" value="toUser at gmail.com" />
  |         <param name="SMTPDebug" value="true" />
  |         <param name="SMTPUsername" value="username" />
  |         <param name="SMTPPassword" value="password" />
  |         <param name="Subject" value="webapp error" />
  |         <layout class="org.apache.log4j.PatternLayout">
  |             <param name="ConversionPattern" value="[%d]%n%n%-5p%n%n%c%n%n%m%n%n" />
  |         </layout>
  |         <filter class="org.apache.log4j.varia.LevelRangeFilter">
  |             <param name="LevelMin" value="ERROR"/>
  |             <param name="LevelMax" value="FATAL"/>
  |         </filter>
  |     </appender>
  | 

Thanks, 
Rod

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

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



More information about the jboss-user mailing list