outlook does not automatically convert <img> to cid:

M

Marco Wassink

Hi everybody,

I am creating a program to manipulate the htmlbody of emails, so people can
create several signatures that will automatically be inserted in the body of
the email.
This works fine but there is one issue:

I noticed that outlook does not always change the local file reference to an
image, for example:

<img src="c:\image.gif">

Usually if you type some text, or save the message, outlook does a
conversion to attach the image to the email and you can see the reference
change to something like:

img id="_x0000_i1025" src="cid:[email protected]">


is there any way to make sure that Outlook does the conversion so that I can
make sure that there does not appear a red cross in the email?

kind regards,

Marco Wassink
 
M

Marco Wassink

Hi Ken,

no, I don't know how to reference the file so that it is used in the body of
the email. Can you tell me how to do this?

Is this the most secure way to make sure the image gets sent and displayed
by outlook?

regards Marco
 
K

Ken Slovak - [MVP - Outlook]

Take a look at the sample at http://www.outlookcode.com/d/code/htmlimg.htm.
It uses CDO code for what's not exposed in the Outlook object model prior to
Outlook 2007. There are many other similar examples at that Web site, just
search there on "embed image" to find different examples in various
languages.
 
O

Otthobot

This was really pissing me off recently - but I found a solution!

Use regedit to change this key to 1 from 0

Outlook 2007 is a never ending source of headaches! Why on earth did they
take this off the menu! Enjoy!

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Options\Mail]
"Send Pictures With Document"=dword:00000001
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top