Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / July 2005

Tip: Looking for answers? Try searching our database.

Embedded images before sending

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexander van Ballegooij - 11 Jul 2005 12:12 GMT
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
Dmitry Streblechenko - 11 Jul 2005 18:17 GMT
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

> Hello,
>
[quoted text clipped - 13 lines]
>
> Alexander
Alexander van Ballegooij - 14 Jul 2005 10:35 GMT
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!

> What does "This seems to be impossible" really mean? Do you get an error?
>
[quoted text clipped - 20 lines]
> >
> > Alexander
Dmitry Streblechenko - 14 Jul 2005 18:11 GMT
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

>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
[quoted text clipped - 33 lines]
>> >
>> > Alexander
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.