Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Multiple attachments with MSMAPI
Message
De
22/01/2001 09:44:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Sending Multiple attachments with MSMAPI
Divers
Thread ID:
00466573
Message ID:
00466573
Vues:
39
I am using the MSMAPI control

I can send 1 attachment ok but I am having trouble sending mutiple attachments.

ie an example where I try to send my config.sys and autoexec.bat files as an attachment


*********This bit works ok

Thisform.MapiMessages1.AttachmentIndex = 0
*Thisform.MapiMessages1.AttachmentPosition = 0
*&&Set the type of attachment:
Thisform.MapiMessages1.AttachmentType = ATTACHTYPE_DATA
*&&Set the icon title of attachment:
Thisform.MapiMessages1.AttachmentName = "System Configuration File"
*&&Set the path and file name of the attachment:
Thisform.MapiMessages1.AttachmentPathName = "C:\CONFIG.SYS"


****** However when I add this bit it tells me there is an unspecified failure message
Thisform.MapiMessages1.AttachmentIndex = 1
*Thisform.MapiMessages1.AttachmentPosition = 20
*&&Set the type of attachment:
Thisform.MapiMessages1.AttachmentType = ATTACHTYPE_DATA
*&&Set the icon title of attachment:
Thisform.MapiMessages1.AttachmentName = "Auto exec File"
*&&Set the path and file name of the attachment:
Thisform.MapiMessages1.AttachmentPathName = "C:\AUTOEXEC.BAT"

<\PRE>


Many Thanks
Répondre
Fil
Voir

Click here to load this message in the networking platform