Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oulook, Delphi, Attachements and Content-ID

Status
Not open for further replies.

TheRocket

Programmer
Jan 14, 2004
1
CA
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=&quot;cid:29303033@292939&quot; ...> 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top