Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAPI - Sending Attachments to Recipients Programmatically
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
MAPI - Sending Attachments to Recipients Programmatically
Divers
Thread ID:
00261254
Message ID:
00261254
Vues:
54
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform