I have a simple test app that I have written to gain some knowledge
about the API for accessing Outlook using Visual Studio .NET
Relevant snippets are
........
while(true)
{
Application outlook = new Application();
outlook.NewMailEx += new
ApplicationEvents_11_NewMailExEventHandler(outlook _NewMailEx);
}
........
private static void outlook_NewMailEx(string EntryIDCollection)
{
Console.WriteLine("New mail arrived .... !");
}
I realise that there may be a problem with the "while(true)" part
(otherwise it simply exits when the process starts) but I was expecting
that when I send the test email, I should see only one line at the
console saying "New mail arrived ....!". Instead I see thousands !!
Any help is appreciated,
- K