4 Replies Latest reply on Aug 18, 2010 11:10 AM by jack lista

    Email Configuartion in JBoss ESB?

    arjun purushothaman Newbie

      Hi,

      I want to add Email Notification in JBoss ESB flow. So i added the below action in my jboss-esb.xml file.

      <action class="org.jboss.soa.esb.actions.Notifier" name="notificationAction">
      <property name="notification-details">
       <NotificationList type="OK">
       <target class="NotifyEmail"
       from="frommail@mail.com"
       sendTo="sendmail@mail.com"
       subject="Hello"
       message="My First email message">
      </target>
      </NotificationList>
      </property>
      </action>


      Though nothing erroring out and email notification is also not sent, i want to confirm whether the configuration has set properly?

      Also please help me (how and where) configuring smtp (hostmane) and POP3.

      Thanks,
      Arjun

        • 1. Re: Email Configuartion in JBoss ESB?
          arjun purushothaman Newbie

          Hi,

          I have configured the smtp host name in "mail-service.xml" and also uncommented the EmailAlertListener in "monitoring-service.xml" file. Still Email Notifier is not sending the mail to my email id.

          Am i missing anything else in the configuration. Please help me as it is very urgent for my project.

          Regards,
          Arjun

          • 2. Re: Email Configuartion in JBoss ESB?
            Daniel Bevenius Master

            Hi,

            Also please help me (how and where) configuring smtp (hostmane) and POP3.

            This can be configured as a global setting in deploy/jbossesb.sar/jbossesb-properties:
            <properties name="transports" depends="core">
             <property name="org.jboss.soa.esb.mail.smtp.host" value="localhost"/>
             <property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
             <property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
             <property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
             <property name="org.jboss.soa.esb.mail.smtp.auth" value="true"/>
            </properties>

            These can also be overridden in jboss-esb.xml:
            <target class="NotifyEmail"
             host="localhost"
             port="8801"
             username="smtpUsername"
             password="smtpPassword"
             auth="true"
             from="person@somewhere.com"
             sendTo="person@elsewhere.com"
             subject="theSubject">
             msgAttachmentName="theSubject">
             <attachment>attachThisFile.txt</attachment>
            </target>


            With JBossESB 4.6 we are shipping an EmailRouter and an EmailWiretap action that might be of interest to you. Please see the ProgrammersGuide for more details:
            http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/docs/ProgrammersGuide.odt

            Regards,

            /Daniel

            • 3. Re: Email Configuartion in JBoss ESB?
              arjun purushothaman Newbie

              Hi Daniel,

              Thanks for your help.

              I tried your suggestion by configuring the Mail Notifier in the jboss-esb.xml itself. But still i didn't got the expected result. In the console also it is not showing error or any output related the Mail Notifier.

              So i have created my own custom action class for mail notification. It is working fine.

              Is there anything which i am missing in the configuration which you provided?

              Regards,
              Arjun

              • 4. Re: Email Configuartion in JBoss ESB?
                jack lista Newbie

                Hi, I realize this is an old thread but it's the only one I've found that focuses on the EmailWiretap/Router/Notifier.  Is it possible to send MIME multipart messages via these components?  I would like to send a MIME multipart email message with HTML and plain text parts.  Is it possible to do this?  tia...

                 

                -=j=-