 |
OpenEMM Support Use this forum to get and provide free help regarding OpenEMM
|
| View previous topic :: View next topic |
| Author |
Message |
BG
Joined: 04 Jul 2008 Posts: 15
|
Posted: Fri Sep 05, 2008 1:18 pm Post subject: embedded image does not display in offline html mode |
|
|
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 |
|
| Back to top |
|
 |
BG
Joined: 04 Jul 2008 Posts: 15
|
Posted: Thu Sep 11, 2008 7:55 am Post subject: image |
|
|
Hi
Is understandalble what I wrote?
bg |
|
| Back to top |
|
 |
BG
Joined: 04 Jul 2008 Posts: 15
|
Posted: Thu Sep 11, 2008 8:41 am Post subject: image |
|
|
f...ck, your solution is RFC compliant
http://tools.ietf.org/html/rfc2110#section-4.3
| Code: |
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: |
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: |
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. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|