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