On Mon, 2010-11-15 at 07:46 +0200, Dov Grobgeld wrote: > Right. I got that to work too. But I wonder if how you can do inline > html with images. E.g. assume I want to send the message with an > embedded image: > > <h1>Welcome</h1> > Please welcome Mr. Tux:<p/> > <img src="tux.png"><p/> > He'll be your server tonight. > > > The following straightforward way does not work. (Not even the HTML > comes out ok). So is there any way of doing it properly?
Hi Dov, It is something that may be possible to do with openchangeclient if you implement additional logic. What you are trying to do (from a technical point of view) is very similar to the Outlook 2003 welcome message. I have not been looking further, but I assume you will need to do the following: 1. Attach your image to the E-mail 2. Set the value of the PidTagAttachContentId property 3. Write your body content within PR_HTML 4. Reference the pictures in your body content using <img src="cid:image-identifier"> where image-identifier is the value of PidTagAttachContentId for the associated picture you want to embed. openchangeclient doesn't implement this logic yet, but the modifications should be trivial. Hope it helps. Kind Regards, Julien. -- Julien Kerihuel [email protected] OpenChange Project Manager GPG Fingerprint: 0B55 783D A781 6329 108A B609 7EF6 FE11 A35F 1F79
signature.asc
Description: This is a digitally signed message part
_______________________________________________ devel mailing list [email protected] http://mailman.openchange.org/listinfo/devel
