Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using MAPI to retrieve attachment
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00190852
Message ID:
00190860
Views:
18
>I seem to remember that files can either be embedded (as OLE objects) or 'attached' to the message. Check the attachment 'type' just in case.

Thanks for the suggestion. I cannot get a hold of the .AttachmentType either. I have been trying with Outlook Express as well now with the same result:

I can see there is an attachment, but I cannot retrieve any info regarding the attachment. I looks as though I am missing something here.

This is the code I am using :


&& Go to a mail with attachment
THISFORM.MAPImessage.MsgIndex = 2

IF THISFORM.MAPImessage.AttachmentCount > 0
&& Just in case...
THISFORM.MAPImessage.AttachmentIndex = 0

&& I get an error on this line as .AttachmentPathName holds no value
lcPath = THISFORM.MAPImessage.AttachmentPathName

ENDIF
(using VFP 3.0 for Win & Mac)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform