Reference cid: with attachment ?

  • Thread starter Thread starter Juan Rodriguez
  • Start date Start date
J

Juan Rodriguez

Hi !
Is there any way of referencing the cid: of an image embebed into an html
email and his attachment ?
In fact, I'm doing this...
Insert-Image
and then...

' While i <= Item.Attachments.Count()
' FileN = Item.Attachments(i).FileName
' Item.Attachments(i).SaveAsFile ("e:\temp\" & FileN)
' i = i + 1
' Wend

What I want is to know which attachment reference which cid on the html
code.
Thanks !

--
Juan M. Rodriguez
Servicios Profesionales
teg solutions argentina s.a.
(e-mail address removed)
Tel: 54-11-4590-2222
Fax: 54-11-4590-2201
www.tegsolutions.com

La calidad no está en el trabajo que hace la gente, sino en la gente que
hace el trabajo.
 
Not using the Outlook Object Model. You will need to use Extended MAPI /CDO
1.21/Redemption to read the PR_ATTACH_CONTENT_ID property from the
attachment.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Dimitry, thanks for your answer.
I've notice that whenever I loop through Items(i).Attachments outlook always
show the attachment files and then the embeded ones.
If I know the total of attachments (items(i).Attachments.Count) and count
the cid: on html source code I can know how much embeded and how much
attachments are.
As outlook shows attachments in order, I believe that doing this makes I can
know which cid is for what attachment.
Please, I want to know if you think this is super dirty or I this can be
useful.
Thanks again !
Juan M. Rodriguez
 
Yes, you can find out the total number of attachments and the number of
embedded attachments, but not which attachments are embedded and which ones
are not.
The only solution is to read PR_ATTACH_CONTENT_ID from each attachment.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
PR_ATTACH_CONTENT_ID ??
What is this ? I'm looking at object browser but cannot find it ?
Really appreciate your help.
 
Back
Top