4 Replies Latest reply on Jul 25, 2011 2:11 AM by gastaldi

    How to configure Mail service

    gerry.matte

      For Jboss 6 and lower one could configure their Mail service using the deploy/mail-service.xml file:

        <!-- ==================================================================== -->

        <!-- Mail Connection Factory                                              -->

        <!-- ==================================================================== -->

       

        <mbean code="org.jboss.mail.MailService"

               name="jboss:service=Mail">

          <attribute name="JNDIName">java:/Mail</attribute>

          <attribute name="User">NotNeeded4SMTP</attribute>

          <attribute name="Password">xxxxx</attribute>

          <attribute name="Configuration">

            <!-- A test configuration -->

            <configuration>

              <!-- Change to your mail server prototocol -->

              <property name="mail.store.protocol" value="pop3"/>

              <property name="mail.transport.protocol" value="smtp"/>

       

              <!-- Change to the user who will receive mail  -->

              <property name="mail.user" value="xxxx@xxxx.ca"/>

       

              <!-- Change to the mail server  -->

              <property name="mail.pop3.host" value="shawmail.cg.shawcable.net"/>

       

              <!-- Change to the SMTP gateway server -->

              <property name="mail.smtp.host" value="shawmail.cg.shawcable.net"/>

             

              <!-- The mail server port -->

              <property name="mail.smtp.port" value="25"/>

             

              <!-- Change to the address mail will be from  -->

              <property name="mail.from" value="xxxx@xxxx.ca"/>

       

              <!-- Enable debugging output from the javamail classes -->

              <property name="mail.debug" value="false"/>

            </configuration>

          </attribute>

          <depends>jboss:service=Naming</depends>

        </mbean>

       

      How does one configure the equivalent Mail service for JBoss 7 ?