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.NewMail Ex += new
ApplicationEven ts_11_NewMailEx EventHandler(ou tlook_NewMailEx );
}
........
private static void outlook_NewMail Ex(string EntryIDCollecti on)
{
Console.WriteLi ne("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