Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Exchange Server/Outlook & MAPI
Versions des environnements
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement