Hi I need to do a script that read all mails in Outlook but only takes a few based on the sender, I found this code but when I try to run it,(I have WinNT) I get the following message:
ActiveX component can't create object: 'MAPI.Session'
set objSession=CreateObject("MAPI.Session"
set objSession.Logon="bla"
set objInbox=objsession.Inbox.messages
for each objMessages In objSession
if obj.Sender="x@.com" then
str Message=objMessage.Body
end if
next
Does somebody knows what this error means?? Thanx a lot!!
ActiveX component can't create object: 'MAPI.Session'
set objSession=CreateObject("MAPI.Session"
set objSession.Logon="bla"
set objInbox=objsession.Inbox.messages
for each objMessages In objSession
if obj.Sender="x@.com" then
str Message=objMessage.Body
end if
next
Does somebody knows what this error means?? Thanx a lot!!