Suthish Nair

Suthish Nair

  • NA
  • 30.5k
  • 7.2m

Outlook integration with asp.net (c#)

Feb 17 2011 10:30 AM

Hi All,
 
VS2008 (C#), Reference: Microsoft Outlook 12.0 Object Library.
 
Developing a scheduler and want to schedule it on Server (2003).
 
Reading of mails from Outlook done. Part of code, for reference..
 
using OutlookApp = Microsoft.Office.Interop.Outlook;OutlookApp._Application olApp = new OutlookApp.ApplicationClass();
OutlookApp._NameSpace olNS = olApp.GetNamespace("MAPI");
OutlookApp.MAPIFolder oFolder = olNS.GetDefaultFolder(OutlookApp.OlDefaultFolders.olFolderInbox);
Console.Write(oFolder.Name);
Console.ReadLine();OutlookApp._Application olApp = new OutlookApp.ApplicationClass();This line opening an physical instance or window of Outlook on Server. How to avoid this? Before scheduling to Server, its necessary to install Microsoft Office Outlook 2007?Let me know any more information needed. Thank You

Answers (4)