I have successfully written a VBA script in Outlook that monitors for incoming mail. The program takes the incoming message, saves any attachements to a specified folder, then moves the mail message from the Inbox to another folder.
However, I do not want to use Outlook but rather a custom application of some sort. I was thinking of using a vb.net application that runs as a service. What I wanted to know was how I could monitor a mailbox on the exchange server for the arrival of a new mail message (similar to the NewMailEx event in Outlook) and to perform the same types of operations I am doing in the Outlook VBA environment.
Start Free Trial