Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Multiple attachments with MSMAPI (Formatted)
Message
From
22/01/2001 10:16:45
 
 
To
22/01/2001 09:47:36
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00466576
Message ID:
00466605
Views:
8
I have now solved the original problem. It was documented in MSDN.

However now it inserts a space into the body of my message for each attachment I add.

Since I do not need the attachments in the body of my message I am going to have to find a way to stop this happening,

Many Thanks



>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"
>
>
>
>Many Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform