Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Multiple attachments with MSMAPI
Message
From
22/01/2001 09:44:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Sending Multiple attachments with MSMAPI
Miscellaneous
Thread ID:
00466573
Message ID:
00466573
Views:
40
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
Reply
Map
View

Click here to load this message in the networking platform