5 Replies Latest reply on Oct 15, 2009 6:50 AM by Cody Lerum

    PDF Attachments and Lotus Notes 6.5 Outlook 2003

    Tom Goring Apprentice

      Hi,


      Seam 2.1.1.GA


      PDF attachments don't seem to work with the above email clients.
      (My app is live and ok with other email clients)
      I think it's something todo with disposition eq inline.
      I've set them to disposition eq attachment and that also does not work.


      Or does anyone know how you would display an inline PDF attachment anyway (I understand the idea for images etc).


      I've tried the seam example and that also does not work in my email.


               <m:attachment fileName="whyseam.pdf" disposition="attachment"
                           <ui:include src="/whyseam.xhtml" />
                </m:attachment>
      



      Any ideas ?

        • 1. Re: PDF Attachments and Lotus Notes 6.5 Outlook 2003
          Tom Goring Apprentice

          Hi, Still no luck with this :(


          Here is my page with sample attachment:


          <m:message xmlns="http://www.w3.org/1999/xhtml"
                     xmlns:m="http://jboss.com/products/seam/mail"
                     xmlns:ui="http://java.sun.com/jsf/facelets"
                     xmlns:h="http://java.sun.com/jsf/html">
              
                    <m:from name="Seam" address="do-not-reply@jboss.com" />
                    <m:to name="Tom">3a175b4@emailtests.com</m:to>
                    <m:subject>Try out Seam!</m:subject>
                    <m:attachment fileName="whyseam.pdf">
                               <ui:include src="/mail/whyseam.xhtml" />
                    </m:attachment>
                    <m:body>
                        <p>This example email demonstrates how easy it is to add attachments to an email!</p>
                        <p>We can even display attached images inline:</p>
                        <p>The attached pdf was generated by Seam's PDF library</p>
                     </m:body>
          </m:message>




          In Outlook 2003 and Lotus notes 6.5 it does not show the attachment anywhere.


          Anyone got any ideas?



          Delivered-To: tom.goring@gmail.com
          Received: by 10.86.95.18 with SMTP id s18cs773930fgb;
                  Wed, 3 Jun 2009 13:28:27 -0700 (PDT)
          Received: by 10.210.133.2 with SMTP id g2mr861247ebd.59.1244060907034;
                  Wed, 03 Jun 2009 13:28:27 -0700 (PDT)
          Return-Path: <do-not-reply@jboss.com>
          Received: from rs2.jnet.ltd.uk (rs2.jnet.ltd.uk [83.138.141.175])
                  by mx.google.com with ESMTP id 17si687961ewy.115.2009.06.03.13.28.26;
                  Wed, 03 Jun 2009 13:28:26 -0700 (PDT)
          Received-SPF: neutral (google.com: 83.138.141.175 is neither permitted nor denied by best guess record for domain of do-not-reply@jboss.com) client-ip=83.138.141.175;
          Authentication-Results: mx.google.com; spf=neutral (google.com: 83.138.141.175 is neither permitted nor denied by best guess record for domain of do-not-reply@jboss.com) smtp.mail=do-not-reply@jboss.com
          Received: from tgoring-desktop (87-194-118-60.bethere.co.uk [87.194.118.60])
               (authenticated bits=0)
               by rs2.jnet.ltd.uk (8.12.11.20060308/8.12.11) with ESMTP id n53KRFES024543
               for <tom.goring@gmail.com>; Wed, 3 Jun 2009 21:27:16 +0100
          Date: Wed, 3 Jun 2009 21:27:15 +0100
          From: Seam <do-not-reply@jboss.com>
          To: Tom <tom.goring@gmail.com>
          Message-ID: <14046044.01244060905931.JavaMail.tgoring@tgoring-desktop>
          Subject: Try out Seam!
          MIME-Version: 1.0
          Content-Type: multipart/mixed; boundary="----=_Part_0_2566429.1244060904608"
          
          ------=_Part_0_2566429.1244060904608
          Content-Type: multipart/related; 
               boundary="----=_Part_1_25851725.1244060905864"
          
          ------=_Part_1_25851725.1244060905864
          Content-Type: text/html; charset=ISO-8859-1
          Content-Transfer-Encoding: 7bit
          Content-Disposition: inline
          
          
                        <p>This example email demonstrates how easy it is to add attachments to an email!</p>
                        <p>We can even display attached images inline:</p>
                        <p>The attached pdf was generated by Seam's PDF library</p>
          ------=_Part_1_25851725.1244060905864
          Content-Type: application/pdf; name=whyseam.pdf
          Content-Transfer-Encoding: base64
          Content-ID: <nlyenmmluaueqwydssiw>
          Content-Disposition: attachment; filename=whyseam.pdf
          
          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
          ZRIC07drBIpM6JZKSwnaIGNQV8St/EHBJJB5JRE7KHuAc1/3uqkDw6jeqpvCzvGt7cpAjYvVMpsN
          ulzOk/JJPJ1C4FW8GKN2GtcmipqM3UZv+zhHuCslimzqTc/3ZWmg6eH4CXaBQhEq7utR7wQ3G6W8
          mC1nyzgl9sNAouseER17Er3vAvMhZcrUXgz+VQRtwzU/GhDdhcy1fdPp6QmG257GcJRRwmdZnoR7
          DKx1jJnKzpJ4QIKuzO0kDItouo84uOYXJuLL+4+/xq8PWLxp7GkyKgRFsoilSUo2lAARii1jXP+L
          29OeRN8tW+x4fR+yc1TssjHawQ/kQocpzyXjS9fa2n0r3f5nrubfBfX59reHT6up786N+vyOe4kQ
          eTEN8zSy27CRcNzt1FO4wW/xH9oQlRvX6rQYxmpSlMvrsUqFJ3EMfxWoa0dek06OPptZWVX8rX3h
          TbGWb0s+yOhbf+2SXoUJhz2u7icCnpOZ8swytxiwU54mTEgbgue8/AWxxgj+ntOvrQDProT6YXXz
          n5v/Az6/7sEKZW5kc3RyZWFtCmVuZG9iago0IDAgb2JqPDwvVHlwZS9QYWdlL0NvbnRlbnRzIDIg
          MCBSL1BhcmVudCAzIDAgUi9SZXNvdXJjZXM8PC9Qcm9jU2V0IFsvUERGIC9UZXh0IC9JbWFnZUIg
          L0ltYWdlQyAvSW1hZ2VJXS9Gb250PDwvRjEgMSAwIFI+Pj4+L01lZGlhQm94WzAgMCA1OTUgODQy
          XT4+CmVuZG9iago1IDAgb2JqIDw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMjA3Mj4+c3Ry
          ZWFtCnicnVhdk9u4EXzXr0Ddi+0qrUJSIiU9pbx39sVbcdWdvY6TivMAkaCIXRCgAXBl3a9PD0BK
          2ottblxbq08S0zPT0zOjz7PPs4Td4P9ulrIDnhOWsne/zpYFy5eLnLWzPN/Gl2r2fvY7/j7Prm/D
          9yt2W82yLFmsNuwq3dC7v7xOWZqx23r2/GNzZO8Fb//K/v3i9m72PAuP/6HHq+GmhG65wlH0j5d4
          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
          8zQ7zdhJnkZEcE7iONrxqIAxHYjPPUxRn70cIuYjAIaoRU0NFR8kPIyhMlLsoqlHBf8hWB2EGNAG
          181l33u6HrzlFpsJ2INtEQqPugyqHj/wIAGWr8l2l69GpUq32aNeV9N0T5LQ0V57YeU0VA49DWF6
          bBPD+z263/vXgYmvbq7ZcpHMp6a8bKBTPowNXJmxUT2yHlkFoYlmLgZRWp7n7DUUitrwnP1isQ7g
          +c3PryD3gZTT7WS5zcd05fnww8XLO/5lBX+GfZ9GYBP5EZd9MIzHrXBgCXyexznuGnsr+wdXsjqv
          MBQZ8QU5f8JvRqvtWGXZdht/W9tDVbv4o5ASPKrOR8ybZMqhk968f3eFi7GGRSMs3IDCog7NZRt3
          ybgvkRhWGBVHX74K6NXt7PfZfwFsK184CmVuZHN0cmVhbQplbmRvYmoKNiAwIG9iajw8L1R5cGUv
          UGFnZS9Db250ZW50cyA1IDAgUi9QYXJlbnQgMyAwIFIvUmVzb3VyY2VzPDwvUHJvY1NldCBbL1BE
          RiAvVGV4dCAvSW1hZ2VCIC9JbWFnZUMgL0ltYWdlSV0vRm9udDw8L0YxIDEgMCBSPj4+Pi9NZWRp
          YUJveFswIDAgNTk1IDg0Ml0+PgplbmRvYmoKNyAwIG9iaiA8PC9GaWx0ZXIvRmxhdGVEZWNvZGUv
          TGVuZ3RoIDMxNj4+c3RyZWFtCnicdVFBasMwELzrFXOre4grO3HsnAqFtDS3NoZSSg/Clhu5tpRY
          soN/35UTAoEGsatdiZkdjQ7swDg2FDWLcKSdI8L7C5svkczDBC1LktWpbNiWvdE6sKd8ul8gL1kc
          83CRYRZlvnt4jhDFyCsWfOxGbKVoH/F1n9csmE/52+fZGcQ9ZEZUPqiknPGp4kS4vCbkYcqXKypJ
          ZRhncZoiL1igtDNwO4mNGATWa1gndCm6MkROp14B9p2pZeGgLJxxomlGFKZtlXOyxBmuSilgKpi9
          1LCm7wrppfJpnp/ET3Ivym7q0WYQThmNslOD0j/Q8jjRW5AyyJ3QhWyldhbX4veNcJXp2vDW4Di9
          WJJNHr861L11OJru155Q/JZ9F77g0/R3TYPGDPRscqXCaHq4bqTu/9nrnP79D620k2MKZW5kc3Ry
          ZWFtCmVuZG9iago4IDAgb2JqPDwvVHlwZS9QYWdlL0NvbnRlbnRzIDcgMCBSL1BhcmVudCAzIDAg
          Ui9SZXNvdXJjZXM8PC9Qcm9jU2V0IFsvUERGIC9UZXh0IC9JbWFnZUIgL0ltYWdlQyAvSW1hZ2VJ
          XS9Gb250PDwvRjEgMSAwIFI+Pj4+L01lZGlhQm94WzAgMCA1OTUgODQyXT4+CmVuZG9iagoxIDAg
          b2JqPDwvVHlwZS9Gb250L0Jhc2VGb250L0hlbHZldGljYS9TdWJ0eXBlL1R5cGUxL0VuY29kaW5n
          L1dpbkFuc2lFbmNvZGluZz4+CmVuZG9iagozIDAgb2JqPDwvQ291bnQgMy9UeXBlL1BhZ2VzL0tp
          ZHNbNCAwIFIgNiAwIFIgOCAwIFJdPj4KZW5kb2JqCjkgMCBvYmo8PC9UeXBlL0NhdGFsb2cvUGFn
          ZXMgMyAwIFI+PgplbmRvYmoKMTAgMCBvYmo8PC9TdWJqZWN0KHNlYW0pL0tleXdvcmRzKG15a2V5
          d29yZCkvQ3JlYXRpb25EYXRlKEQ6MjAwOTA2MDMyMDI4MjRaKS9UaXRsZShXaHkgU2VhbSkvQXV0
          aG9yKFNlYW0gVGVhbSkvUHJvZHVjZXIoaVRleHQgMi4xLjIgXChieSBsb3dhZ2llLmNvbVwpKS9D
          cmVhdG9yKFNlYW0gUERGIGV4YW1wbGUgYXBwKS9Nb2REYXRlKEQ6MjAwOTA2MDMyMDI4MjRaKT4+
          CmVuZG9iagp4cmVmCjAgMTEKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDA1MDEyIDAwMDAwIG4g
          CjAwMDAwMDAwMTUgMDAwMDAgbiAKMDAwMDAwNTA5OSAwMDAwMCBuIAowMDAwMDAyMDIxIDAwMDAw
          IG4gCjAwMDAwMDIxNzcgMDAwMDAgbiAKMDAwMDAwNDMxNyAwMDAwMCBuIAowMDAwMDA0NDczIDAw
          MDAwIG4gCjAwMDAwMDQ4NTYgMDAwMDAgbiAKMDAwMDAwNTE2MSAwMDAwMCBuIAowMDAwMDA1MjA1
          IDAwMDAwIG4gCnRyYWlsZXIKPDwvSUQgWzxiYmUzNTkxNTk3ZjU4MGY4OGRmZTI2YmVmZWU0YWU0
          ND48ZmFkM2FjMGU2OWM1OWM2ZjQzNzQ3MmJkMWE3YjQ1MmE+XS9Sb290IDkgMCBSL1NpemUgMTEv
          SW5mbyAxMCAwIFI+PgpzdGFydHhyZWYKNTQyMwolJUVPRgo=
          ------=_Part_1_25851725.1244060905864--
          
          ------=_Part_0_2566429.1244060904608--
          
          



          • 2. Re: PDF Attachments and Lotus Notes 6.5 Outlook 2003
            Tom Goring Apprentice

            Ok, I've got to the bottom of this and I think it is a seam bug.


            The issue is the Content-ID on the PDF attachment.


            I've made a local fix in UIAttachment to not set the contentId.
            I think this should be done in the case of disposition eq attachment and not for inline


            I'll raise this as a seam bug unless anyone says otherwise.


            Forum Link



            The reason odang's message didn't display is that it had a content-id specified, which usually indicates that the attachment is displayed inline in the email i.e. an image in the actual html. This check was added in the 4 beta to eliminate a huge list of attachment images that displayed in some html emails. However, we are going to remove it until we can find a better solution that doesn't hide attachments that it shouldn't.
            • 4. Re: PDF Attachments and Lotus Notes 6.5 Outlook 2003
              Cody Lerum Apprentice

              Any progress on this?


              What changes did you make to the UIAttachment.java