I have an application which emails out files periodically using Outlook,but if Outlook is closed the emails remain in the Outbox until Outlook is opened again.
How do I get Outlook to remain open until the Outbox is empty?
Need help
How do I get Outlook to remain open until the Outbox is empty?
Need help
Code:
public void chkIF_There_Is_Mail() { while (oOutboxFolder.Items.Count > 0) { Console.WriteLine("There are still Items in Outlook"); } oApp.Quit(); }
Comment