0 Replies Latest reply on Dec 8, 2009 10:48 AM by longbeach

    [JBoss AS 5.1.0 GA] Sending email, configuring mail-service.

    longbeach

      Hi,
      I am using JBoss AS 5.1.0 GA and I am trying to use JBoss's built-in implementation of the JavaMail API.

      What are the libs concerned ?
      Currently I see jboss-5.1.0.GA.jdk6\common\lib\mail-plugin.jar and jboss-5.1.0.GA.jdk6\common\lib\mail.jar

      mail.jar contains the javax.mail. package (Sun implementation)
      mail-plugin.jar contains the org.jboss.mail package

      What do i need to configure in order to send an email from a Java class ?
      I see the file jboss-5.1.0.GA.jdk6\server/default/deploy/mail-service.xml

      Do i need to modify the properties files javamail.default.providers and javamail.default.address.map that are inside mail.jar/META-INF ?
      Are they used ?

      Thanks for helping.