Embedded images before sending

G

Guest

Hello,

I want to make a Office Add-in for Outlook. This application generates HTML
Email messages with images. This Add-In works fine if i send e-mail. The
images are embedded. But, i want to save the e-mail just before sending to a
..msg file on disk. Also with embedded images. This seems to be impossible...

Does anyone has a idea how to get the messages embedded before sending. It
is possible with OUtlook, but it seems that outlook first copies the message
to the outbox.
Thanks for the help.

Alexander
 
D

Dmitry Streblechenko

What does "This seems to be impossible" really mean? Do you get an error?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Alexander van Ballegooij"
 
G

Guest

I tried everything even searched in MAPI, but nothing seems the sollution.
I discoverd one other thing... when i make a e-mail and programmaticly set
the HTMLBody with images with a full path to disk and i save this mail then
the images are not embedded. When i insert a image with outlook, and then
save the mailitem, all the images are embedded. So outlook has to set some
kind of flag so all the images are going to be embedded... but i can't find
out what flag this is!
 
D

Dmitry Streblechenko

Yes, you will need to set an extra property on the attachments used as
embedded images. The image source in the HTML body must be set to a cid
(e.g. "<IMG src=cid:myident>"), the special attachment property must contain
the same cid (e.g. "myident").
See http://www.dimastr.com/redemption/objects.htm#examples and scroll down
to "Create an HTML message with an embedded image".
That property can be set usingg Extended MAPI/CDO 1.21/Redemption, Outlook
Object Model won't let you set it.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Alexander van Ballegooij"
 

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