Thursday, 30 April 2015

Call Outlook From Winform

  Microsoft.Office.Interop.Outlook.Application outlookApp = new Microsoft.Office.Interop.Outlook.Application();

            Microsoft.Office.Interop.Outlook.MailItem mailItem = (Microsoft.Office.Interop.Outlook.MailItem)outlookApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);

            mailItem.Subject = "This is the subject";

            mailItem.To = "someone@example.com";

            mailItem.Body = "This is the message.";

            mailItem.Importance = Microsoft.Office.Interop.Outlook.OlImportance.olImportanceLow;

            mailItem.Display(false);

       

 

1 comment:

  1. Wonderful blog & good post.Its really helpful for me, awaiting for more new post. Keep Blogging! nopCommerce plugin. It was very informative.

    ReplyDelete