Email attachment problem. What I have is a VFP form in which I have two OLE controls: oleSession and oleMessage. Each is based on the MSMAPI class. My code follows.
*****************************************
thisform.oleMessage.SessionID = thisform.oleSession.SessionId
thisform.oleMessage.MsgIndex = -1
thisform.oleMessage.Compose()
v_emaddr = "
hambot@earthlink.net" && For test purposes
thisform.oleMessage.RecipDisplayName = allt(v_emaddr)
thisform.oleMessage.msgNoteText = "This is test text."
*****thisform.oleMessage.ResolveName()
thisform.oleMessage.MsgSubject = "*UA Manpower Request Alert*"
thisform.oleMessage.Send(0)
*****************************************
I've attempted to attach a file by including the 'attachments.add("MyFile")' code; tried several variations but no success. I will need to attach multiple files as well.
Any suggestions? Thanks. JS