I have windows 2003 server with about 15 C# windows services sending emails randomly based on some complex business logic. It is a very difficult to find out which application sending emails to whom at what time.
For additional info, the server has McAfee client installed and configured by admin that which application can send emails.
Is there any way I can find out which application is sending email to whom?
If you can't store the information required in a database, then generate log files specific to your need. I'm certain you don't need code to tell you how to have your C# services generate log files that contain all the pertinent information (date/time, service name, email address, type/id or some content identifier). You can then use the logs to generate whatever reporting you need, and if build with configuration, you can turn off the logging once you have enough information to answer the question.