On Monday, November 15, 2010 09:14:24 pm Dov Grobgeld wrote: > > > <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? I think the reason why it doesn't work out is that the shell is eating some of the quotes (i.e. you didn't escape them). Its probably easiest to use the --html-file option to avoid this, at least during initial investigations.
> > 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. It looks like at least Outlook 2010 will take the cid: from a normal attachment. So something like: ./bin/openchangeclient --sendmail --subject="Mr Tux" --html- inline="<html><body><h1>Welcome</h1><p>Please welcome Mr. Tux:</p><p><img src=\"cid:tux.png\" alt=\"Description: Image of Tux.\"></p><p>He'll be your server tonight.</p></body></html>" --to=testuser1 --attachments=tux.png filename = tux.png (size = 41236 / 41236) Sending tux.png: We are about to write 41236 bytes in the stream works for me. Brad _______________________________________________ devel mailing list [email protected] http://mailman.openchange.org/listinfo/devel
