Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using MAPI to retrieve attachment
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00190852
Message ID:
00190860
Vues:
19
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform