title: Log4j SMTPappender error
body: <p>I am trying to use log4j SMTPappender getting below. error. All other appenders are working fine. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt;
  &lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"&gt;
  
  &lt;!--                          --&gt;
  &lt;!-- Declare the SMTPAppender --&gt;
  &lt;!--                          --&gt;
  &lt;appender name="EMAIL"  class="org.apache.log4j.net.SMTPAppender"&gt;
      &lt;param name="BufferSize" value="512" /&gt;
      &lt;param name="SMTPHost" value="relaymail.xxx.com" /&gt;
      &lt;param name="From" value="xxx@xxx.com" /&gt;
      &lt;param name="To" value="xxx@xxx.com" /&gt;
      &lt;param name="Subject" value="[SMTPAppender] Application message" /&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern"
            value="[%d{ISO8601}]%n%n%-5p%n%n%c%n%n%m%n%n" /&gt;
      &lt;/layout&gt;
      &lt;filter class="org.apache.log4j.varia.LevelRangeFilter"&gt;
          &lt;param name="LevelMin" value="ERROR"/&gt;
          &lt;param name="LevelMax" value="FATAL"/&gt;
      &lt;/filter&gt;
  &lt;/appender&gt;
  
  &lt;!--                           --&gt;
  &lt;!-- setup log4j's root logger --&gt;
  &lt;!--                           --&gt;
  &lt;root&gt;
      &lt;level value="all" /&gt;
      &lt;appender-ref ref="EMAIL" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p></p>
  
  <p>My Java Code </p>
  
  <pre><code>import org.apache.log4j.Logger;
  import org.apache.log4j.xml.DOMConfigurator;
  public class simpandfile{
     static Logger logger = Logger.getLogger(simpandfile.class);
     public static void main(String args[]) {
        DOMConfigurator.configure("xmllog4jconfig.xml");
        System.setProperty("mail.smtps.host", "smtp.gmail.com:465");
        System.setProperty("mail.smtps.auth", "true");
        logger.debug("Here is DEBUG");
        logger.info("Here is some INFO blah");
        logger.warn("Here is some WARN");
        logger.error("Here");
        logger.debug("prasanna Test");
     }
  }
  **Exceptions** 
  log4j:WARN Continuable parsing error 31 and column 23
  log4j:WARN The content of element type "log4j:configuration" must match "(render
  er*,throwableRenderer?,appender*,plugin*,(category|logger)*,root?,(categoryFacto
  ry|loggerFactory)?)".
  Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/internet/A
  ddressException
          at java.lang.Class.getDeclaredConstructors0(Native Method)
          at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
          at java.lang.Class.getConstructor0(Unknown Source)
          at java.lang.Class.newInstance0(Unknown Source)
          at java.lang.Class.newInstance(Unknown Source)
          at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.ja
  va:247)
          at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurat
  or.java:176)
          at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfi
  gurator.java:191)
          at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOM
  Configurator.java:523)
          at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:4
  92)
          at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1001)
  
          at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
  :867)
          at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
  :755)
          at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:8
  91)
          at simpandfile.main(simpandfile.java:6)
  Caused by: java.lang.ClassNotFoundException: javax.mail.internet.AddressExceptio
  n
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          ... 15 more
  </code></pre>