I am able to save outlook msg file using Microsoft.Office.Interop.Outlook.dll
Dim objOutlk As New Outlook.Application 'Outlook
Const olMailItem As Integer = 0
Dim objMail As New System.Object
objMail = objOutlk.CreateItem(olMailItem) 'Email item
objMail.To = "test@gmail.com'
''Insert your "CC" address...it can by dynamically populated
objMail.cc = "abc@gmail.com" 'Enter an address here To include a carbon copy; bcc is For blind carbon copy's
''Set up Subject Line
objMail.subject = "test msg"
''Set up your message body
objMail.body ="just a test msg"
''Use this To display before sending, otherwise call (use) objMail.Send to send without reviewing
objMail.Display()
objMail.SaveAs("E:/test.msg", Outlook.OlSaveAsType.olMSG)
''Clean up
objMail = Nothing
objOutlk = Nothing
It's working in visual studio.
But now I have deployed my application to IIS but now it's not working
Please help