Microsoft.Office.Interop.Outlook.Application mApp = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.MailItem mEmail = null;
mEmail = (Microsoft.Office.Interop.Outlook.MailItem)mApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
mEmail.To = "somemail@gmail.com";
mEmail.Subject = "AMS Filling";
mEmail.Display();
this is the code that i use to open up outlook window in new tab this works fine with debug mode but when i try to do same in IIS
it navigate me to login page of my application
help !!!!