Hi,
I need to do a very simple email notification application, which should loign to MS Exchange 2003 server and check if any new messages..
BUT
there is one problem..
we use MS Outlook 2000 and 2003 which has two accounts, MS Exchange and POP3 configured..
so is there any way to login to both, check if any new messages and notify the user
Many Thanks..

login to MS Exchange 2003
Michael Slater
Jassim,
I am sorry it took so long for us to respond. We are trying to now get on top of the forums in earnest!
To check for unread messages for one area, just use the UnReadItemCount property of the folder you want. For example:
Dim objFolder As MAPIFolder
Set objFolder = ActiveExplorer.CurrentFolder
Debug.Print objFolder.UnReadItemCount
Currently, I have 26 unread emails for work and 29 on my MSN account. You can access another account by acquiring a pointer to the target folder and checking this property.
Set MSNFolder = onMAPI.Folders("Hotmail").Folders("Inbox")
Debug.Print MSNFolder.UnReadItemCount
This should get you precisely what you need.
Regards,
John.
_Ben_
I moved your thread to the Visual Studio Tools for Office where you might find more help.
Thanks,
Karen
Visual C#