Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: OLE OUTLOOK inbox check mail MAPI
Do you have any OLE code that can interact with Outlook and check the inbox for new mail?
Here is some code the can look at the inbox in Outlook to see if there is any messages....
;*************************************************************************** ;** This script will check every ten seconds ;** for mail in the outlook inbox. ;** NOTE LINES....;remove after debugging ;*************************************************************************** While 1 TimeDelay(10) display(2,"TO SHUT DOWN SCRIPT","PRESS CTRL BREAK");remove after debugging GoSub MAILCHEK endwhile :MAILCHEK olFolderInbox=6 ;constant DO NOT CHANGE MSapp = ObjectOpen ("Outlook.Application") objNameSpace = MSapp.GetNamespace("MAPI") objFolder = objNameSpace.GetDefaultFolder(olFolderInbox); 'Access the Inbox objcount=objFolder.Items mycount=objcount.Count;checks number of messages in inbox! if mycount != 0 Message("MAIL CHECKER","You have messages!!!") Else;remove after debugging Message("MAIL CHECK ","YOU DON'T HAVE MESSAGES");remove after debugging endif return
Article ID: W13670Filename: OLE and OUTLOOK check mail.txtFile Created: 1999:04:15:16:55:36Last Updated: 1999:04:15:16:55:36