Help extracting info from layered, attached mail messages

R

Richard Bixler

Hello,
I am trying to set up a program to extract data from attachments sent to me
indicating sales leads, and have several questions. I've done VB programming
before, but not with Outlook objects.

First, can anyone recommend a good reference for programming Outlook?

Second, if I select (highlight) a message in the Outlook UI browser, is
there a way to directly refer to it like "currentItem" or equivalent? I've
written code to iteratively search through folders for a specifically-titled
message, but if possible would prefer to analyze a humanly-selected message.

Third. The message I select will have a handful of attached Outlook mail
messages attached; and each of these will contain a large number of attached
email messages, each of which contains sales lead information in its body.
Using the selection method above I return a mailItem object whose subject
property matches the one I am seeking, and it contains Attachment objects.
However, I'm not sure how to treat these Attachment objects in order to
extract their attachments and ultimately their body text. Could someone
suggest syntax here?

Thanks in advance for your help. Dick Bixler
 
D

Dmitry Streblechenko \(MVP\)

1. http://www.slipstick.com
2. Application.ActiveExplorer.Selection collection
3. You can't use Outlook Object Model for that - see my reply in the
"Outlook .msg attachment file info needed" thread.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top