Re: Reading and saving embedded message in CDO



Redemption only needs the MAPI system to be installed. Safe*Item family of
objects is designed to be used alongside the OOM or CDO 1.21 objeects.
What kind of images do you mean? Embedded images in the HTML messages are
just regular attachments. Embedded OLE attachments in the RTF messages are
internally stored as IStorage, which really does not make sense as a
standalone file.

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

"Shah" <Shah@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:992BB85F-A321-4647-AE51-D689E36D8940@xxxxxxxxxxxxxxxx
Thanks again for your replies....

Yes its great and I used the following code for it

If (attach.Type = MAPI.CdoAttachmentType.CdoEmbeddedMessage) Then
Dim embeddedMail As New Redemption.SafeMailItem
embeddedMail.Item = attach.Source
embeddedMail.SaveAs(downloadPath + fileName)
else
.....
.....
end if

Now, I want to know two thing. First what is the dependencies of
Redemption
library and second how will I save the embedded images in email in a valid
format.

With Regards
Shah

"Dmitry Streblechenko" wrote:

<plug>
Redemption (url below) - it exposes embedded message attachments through
the
Attachment.EmbeddedMsg property, which returns either an RDOMail object
(if
the attaachment is coming from an RDOMail object) or MessageItem object
(if
the attachment comes from a Safe*Item object). You can then call
SaveAs(...,
olMsg) to save it as an MSG file.
</plug>

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

"Shah" <Shah@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:984A5B38-C240-4451-8F5A-9D309EA3AAAF@xxxxxxxxxxxxxxxx
Thanks for your reply...

Can you tell me what library should I use for this purpose or can you
tell
me about any sample code that manipulate embedded messages. I am
currently
using .net framework and am developing in vb.net.

With Regards

Shah

"Dmitry Streblechenko" wrote:

You can't do that in CDO 1.21 to the best of my knowledge.

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

"Shah" <Shah@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7E8F4F34-FB85-4542-8B06-564607FCDA49@xxxxxxxxxxxxxxxx
Can anyone help me that how would I save attached embedded email to
disk
as
msg file. I am using CDO 1.2.1 and am able to save email attachments
except
embedded emails.

Kindly give me any suggestion.








.



Relevant Pages


Loading