How do I get Outlook to remain open until the Outbox is empty?
Need help
Expand|Select|Wrap|Line Numbers
- public void chkIF_There_Is_Mail()
- {
- while (oOutboxFolder.Items.Count > 0)
- {
- Console.WriteLine("There are still Items in Outlook");
- }
- oApp.Quit();
- }