I want to open outlook express new message window from .net application with attachment. I am using the following code and its opening the window but attachment is not binding. can anyone help me on that.
| System.Diagnostics.Process.Start("mailto:[email protected]?subject=hello&attachment=E:\\test.txt"); |
regards,
BB
Hirendra SisodiyaPosted Oct 23, 2010, 1:18 AM
you can also try :
Dim oApp As New Outlook.Application
Dim mailItem As Microsoft.Office.Interop.Outlook.MailItem = oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)
mailItem.Attachments.Add("E:\test.txt")
mailItem.Display()
Add outlook library in your project
thanks