Hi,
I'm working with outlook 2000 objects (Outlook_TLB) in Delphi 5. I'm able to get MailItems, Attachements, and save the attachement.
For some MailItems, the body contain attachements like <img src="cid:29303033@292939" ...> this Content-ID (cid
is not exposed by properties and methods of Attachement Object of outlook. I need this CID to replace it by a filename in the mail body.
It is available trought the MAPIObject Property of an Outlook attachement (I've used OutLookSpy to find it). How can I access this content ID value? I'm not so familiar with MAPI but a good example will help me to start.
I suppose I will need to convert the Attachement.MAPIObject of Outlook to a IAttach in MAPI, and get the PR_ATTACH_CONTENT_ID property.
I don't want to use CDONTS, because it is not standard on every installation of outlook, and I'm hesitating on Redemption objects...
Thanks for your help,
Patrick Veilleux
I'm working with outlook 2000 objects (Outlook_TLB) in Delphi 5. I'm able to get MailItems, Attachements, and save the attachement.
For some MailItems, the body contain attachements like <img src="cid:29303033@292939" ...> this Content-ID (cid
It is available trought the MAPIObject Property of an Outlook attachement (I've used OutLookSpy to find it). How can I access this content ID value? I'm not so familiar with MAPI but a good example will help me to start.
I suppose I will need to convert the Attachement.MAPIObject of Outlook to a IAttach in MAPI, and get the PR_ATTACH_CONTENT_ID property.
I don't want to use CDONTS, because it is not standard on every installation of outlook, and I'm hesitating on Redemption objects...
Thanks for your help,
Patrick Veilleux