msub=["]+enotes.programnam+["]
mnotes=["]+enotes.message+ImpMsgInfo+["]
mattach=[("c:\billmgmt\mstlist.xls",1,1,) "Just a test MSTLIST excel file attachment!"]
oSess =CREATEObject("MSMAPI.MAPISession"
if vartype(oSess) = "O"
oSess.DownloadMail = .f.
oSess.SignOn()
lnSessionID = oSess.SessionID
if lnSessionID > 0
oMsg = Createobject("MSMAPI.MAPIMessages"
*---we could possibly use vartype(oMsg) to control inhouse ="0" or outside ="1" ????????
if vartype(oMsg) = "O"
oMsg.SessionID = lnSessionID
oMsg.Compose()
oMsg.AddressResolveUI = .f.
*----------------------------------------------
oMsg.MsgSubject = &msub
oMsg.MsgNoteText = &mnotes
oMsg.Attachments.add(mattach)
Error message at this point
"Member attachments does not evaluate to an object"
??????
Thank you for your help.
mnotes=["]+enotes.message+ImpMsgInfo+["]
mattach=[("c:\billmgmt\mstlist.xls",1,1,) "Just a test MSTLIST excel file attachment!"]
oSess =CREATEObject("MSMAPI.MAPISession"
if vartype(oSess) = "O"
oSess.DownloadMail = .f.
oSess.SignOn()
lnSessionID = oSess.SessionID
if lnSessionID > 0
oMsg = Createobject("MSMAPI.MAPIMessages"
*---we could possibly use vartype(oMsg) to control inhouse ="0" or outside ="1" ????????
if vartype(oMsg) = "O"
oMsg.SessionID = lnSessionID
oMsg.Compose()
oMsg.AddressResolveUI = .f.
*----------------------------------------------
oMsg.MsgSubject = &msub
oMsg.MsgNoteText = &mnotes
oMsg.Attachments.add(mattach)
Error message at this point
"Member attachments does not evaluate to an object"
??????
Thank you for your help.