General information
Category:
COM/DCOM and OLE Automation
Title:
Exchange Server/Outlook & MAPI
Environment versions
Network:
Windows 2003 Server
Hi
I want to be able to do 2 things:
1. Connect to my Exchange server, log on to a selected mailbox, sort the inbox by most recent, then look through the inbox for emails from a selected address(s) and within the last week, then copy the contents of the selected email to a local table for processing.
I have the following code that I've seen in another thread, but this is as far as I've got:
loOutlook = creAteOBJECT("outlook.application")
loNameSpace = loOutlook.APPLICATION.GetNamespace('MAPI')
lpUserID="MailboxAccountName"
lpPassword="MailboxAccountPassword"
loNameSpace.Logon(lpUserID, lpPassword)
Any ideas?
Regards
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only