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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

READ EMAIL ATTACHMENT PATH NAMES VIA MAPI

Status
Not open for further replies.

DonRI

Programmer
Jun 10, 2005
11
US
I have little experience with Visual Basic. I see a number of examples of sending emails via MAPI with more than one attachment, but none regarding receiving emails via MAPI with multiple attachments. Can anyone show me an example of reading the pathnames of all email attachments via MAPI in Visual Basic 6?

The first time I use:

MsgBox MAPIMessages1.AttachmentPathName

I see the path name of the first file as it is stored in a temporary internet directory.

I thought that incrementing the value of .AttachmentIndex and then using the same line of code would get me the next pathname, but it doesn't seem to (or I am doing something wrong). Thanks for any example that shows this.
 
Please ignore. I have answered my own question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top