3 Replies Latest reply on Aug 1, 2011 12:41 PM by pdhaigh

    Strange seam mail attachment issue

    traviskds

      I am having a very strange seam mail attachment issue.


      When I run my app in my Ubuntu 8.04 development platform via the Postfix SMTP service and Dovecot pop3 server, the seam email attachment works fine.


      But when I move the app to production servers that use Red Hat Enterprise Linux ES release 4 (Nahant Update 6) and Microsoft exchange, the attachments are not received. (but the email itself is received)


      When I enable debugging to true in the mail-service.xml in JBoss, it shows the attachment file text on the console which indicates that seam has processed the mail attachment properly.


      To narrow down the issue, I ran a direct Java mail class (by passing seam mail but activated from a seam component) that sends an attachment off the RedHat server and it worked fine. So there is no size or any other limit issue set in Microsoft exchange or any issue with JBoss or Java.


      I use the same Jboss version on both servers but on Ubantu I use Java 1.6.007 and on RedHat I use 1.6.011. (but the default Java 1.4 is also present on the server but is not used for JBoss App server)


      Any ideas what could be causing this issue.

        • 1. Re: Strange seam mail attachment issue
          lolotak

          Hi Travis, I have the same problem. Attachments included in mail, and received on mail servers like Google, Yahoo, etc. But there are some mail servers that doesn't recognize the attachment - these are the servers that don't identify attachment MIME type automatically (by file name extension, or by its content).
          I found in debug mode that MIME type of attachments isn't set correctly by SEAM mail. I set it to application/zip, but debug window shows application/octet-stream. I think this is the core problem, why attachments are not recognized by some mail servers.
          It would be helpful if anyone know some solution or workaround for this problem.
          I use SEAM 2.1.1 GA, i have tested also new mail.jar and jboss-seam-mail.jar from SEAM 2.2.1.CR1. App server is JBoss 4.2.2 GA.


          Ondrej

          • 2. Re: Strange seam mail attachment issue
            wkok

            Hi Ondrej,


            I'm having exactly the same problem. Have you had any luck with this?



            Thanks,
            Werner

            • 3. Re: Strange seam mail attachment issue
              pdhaigh

              Hi guys,


              In case anyone is still suffering with this problem - an upgrade to Seam 2.2.2.Final fixed the issue for us.


              phil