Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI - Sending Attachments to Recipients Programmatically
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
MAPI - Sending Attachments to Recipients Programmatically
Miscellaneous
Thread ID:
00261254
Message ID:
00261254
Views:
55
I have been able to establish a MAPISession and set the message Subject and text programmatically using the code shown below.
ThisForm.AddObject("Session1","olecontrol","MSMAPI.MAPISession")
ThisForm.AddObject("Message1","olecontrol","MSMAPI.MAPIMessages")
ThisForm.Session1.SignOn
ThisForm.Message1.SessionId = ThisForm.Session1.SessionId
* Compose an e-mail message and set the Subject line and Message text.
ThisForm.Message1.Compose
ThisForm.Message1.MsgSubject = "Change Order " + Ord_Ma(2)
ThisForm.Message1.MsgNoteText = "Electronic Change Order Text file for Order Number: " + Ord_Ma(2)
However, I have not been able to programmatically attach a file and send to a recipient. Here is some of the code I have tried...
ThisForm.Message1.AttachmentName = "ChgOrder.txt"
ThisForm.Message1.RecipIndex = 1
ThisForm.Message1.RecipAddress = "CHUCK HENRY"
I'm missing something, but I don't know what that "something" is. Any help would be greatly appreciated. TIA, Chuck
Chuck Henry
Next
Reply
Map
View

Click here to load this message in the networking platform