2 Replies Latest reply on Oct 27, 2009 9:43 PM by emanemos

    Sending Email: JBoss SA-5.1 + Seam-2.2

      Hello, could anybody tell me if it is possible to send email from localhost using JBoss AS-5.1 and Seam-2.2?


      I've tryed launching mail example which goes with Seam, but the result is unsatisfactory.
      Clicking the Send Plain Text Email button leads to the following message:



      Email sending failed: Could not connect to SMTP host: localhost, port:2525

      The example page says I could have firewall enabled, which might block email sending. But I haven't installed any firewalls or enabled the existing ones. My OS is ubuntu-9.04. As far as I know, the default firewall configuration tool for this system is ufw and it is disabled by default.


      However, sending from inside a servlet gives me a success page. Alas, no email really comes to the target address.


      Does anybody know how to deal with the situation?

        • 1. Re: Sending Email: JBoss SA-5.1 + Seam-2.2
          lvdberg

          Hi Petr,


          if you have configured a SMTP-server on your localhost it should work, however I think you have forgotten to configure it. If you're using JBOSS, you will find a mail-configuration xml file in the deploy directory. If it's another app-server you need to look at the docs and configure it.


          Another option is to configure the email server in components.xml. The SEAM docs and Seam In Action (Manning) explain that in detail.


          Leo

          • 2. Re: Sending Email: JBoss SA-5.1 + Seam-2.2

            Hi Leo,


            you're quite right. I've really done nothing to configure a SMTP-server. Thought the example should start to work without any extra efforts.


            I'll look up the Manning book.


            Thank you for a guideline.