embedded image does not display in offline html mode

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

BG
Posts: 15
Joined: Fri Jul 04, 2008 2:55 pm

embedded image does not display in offline html mode

Post by BG »

Hi

If I use embedded image, the openemm uses the content-location entry like this: Content-Location: http://my.openemm.net/image?ci=1&mi=18&name=image.jpg and the img tag is src=3D"http://my.openemm.net/image?ci=1&mi=18&name=image.jpg" this cause that the image won't appear in Outlook because Outlook thinks that this image is an external content :( However it is embedded into the message.

Is it possible to use Content-ID entry?
eg.: Content-ID: <image001.jpg@01C90F4C.07E0E480>

Or a possible workaround could be if the content-location would contain only the file name, not URL.
eg.: Content-Location: image001.jpg

Thank you in advance
bg
BG
Posts: 15
Joined: Fri Jul 04, 2008 2:55 pm

image

Post by BG »

Hi

Is understandalble what I wrote? :wink:
bg
BG
Posts: 15
Joined: Fri Jul 04, 2008 2:55 pm

image

Post by BG »

f...ck, your solution is RFC compliant
http://tools.ietf.org/html/rfc2110#section-4.3

Code: Select all

9.2 Example with absolute URIs to an embedded GIF picture


    From: foo1@bar.net
    To: foo2@bar.net
    Subject: A simple example
    Mime-Version: 1.0
    Content-Type: Multipart/related; boundary="boundary-example-1";
                  type=Text/HTML; start=foo3*foo1@bar.net

    --boundary-example-1
       Content-Type: Text/HTML;charset=US-ASCII
       Content-ID: <foo3*foo1@bar.net>

       ... text of the HTML document, which might contain a hyperlink
       to the other body part, for example through a statement such as:
       <IMG SRC="http://www.ietf.cnri.reston.va.us/images/ietflogo.gif"
        ALT="IETF logo">

    --boundary-example-1
       Content-Location:
             http://www.ietf.cnri.reston.va.us/images/ietflogo.gif
       Content-Type: IMAGE/GIF
       Content-Transfer-Encoding: BASE64

       R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
       NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
       etc...

    --boundary-example-1--
but outlook 2003 does not understand it.
MS uses the content-id header if they embed an image:

Code: Select all

9.4 Example using CID URL and Content-ID header to an embedded GIF

   picture

      From: foo1@bar.net
      To: foo2@bar.net
      Subject: A simple example
      Mime-Version: 1.0
      Content-Type: Multipart/related; boundary="boundary-example-1";
                    type=Text/HTML

      --boundary-example-1
         Content-Type: Text/HTML; charset=US-ASCII

         ... text of the HTML document, which might contain a hyperlink
         to the other body part, for example through a statement such as:
         <IMG SRC="cid:foo4*foo1@bar.net" ALT="IETF logo">

      --boundary-example-1
         Content-ID: <foo4*foo1@bar.net>
         Content-Type: IMAGE/GIF
         Content-Transfer-Encoding: BASE64

         R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
         NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
         etc...

      --boundary-example-1--

Maybe relative URI-s could be a solution too:

Code: Select all

9.3 Example with relative URIs to an embedded GIF picture


      From: foo1@bar.net
      To: foo2@bar.net
      Subject: A simple example
      Mime-Version: 1.0
      Content-Base: http://www.ietf.cnri.reston.va.us
      Content-Type: Multipart/related; boundary="boundary-example-1";
                    type=Text/HTML
--boundary-example-1
         Content-Type: Text/HTML; charset=ISO-8859-1
         Content-Transfer-Encoding: QUOTED-PRINTABLE

         ... text of the HTML document, which might contain a hyperlink
         to the other body part, for example through a statement such as:
         <IMG SRC="/images/ietflogo.gif" ALT="IETF logo">
         Example of a copyright sign encoded with Quoted-Printable: =A9
         Example of a copyright sign mapped onto HTML markup: ¨

      --boundary-example-1
         Content-Location: /images/ietflogo.gif
         Content-Type: IMAGE/GIF
         Content-Transfer-Encoding: BASE64

         R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
         NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
         etc...

      --boundary-example-1--
I found that the responsible code is in the MailWriterMeta.java from line 782, but I don't know, how to change it. And the agnImage tag handling should change also :(

Will it be changed in the near future?
Thank you
bg.
Post Reply