I'm using asp.net and vb.net and what i am trying to do is to send an email from asp.net but it needs to open Outlook 2003 and then input the addresses.
what i have so far is:
Dim oOutlook As Microsoft.Office.Interop.Outlook.Application = New Microsoft.Office.Interop.Outlook.Application()
Dim oMailitem As Microsoft.Office.Interop.Outlook.MailItem
Dim oAttach As Microsoft.Office.Interop.Outlook.Attachment
oMailitem = oOutlook.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)
oMailitem.To = “Bob@somewhere.com”
oMailitem.Cc = “Roxy@righthere.com”
oMailitem.Subject = "Email Integration with Outlook and VB.Net"
oMailitem.Display()
Im getting a "System.Runtime.InteropServices.COMException: Server execution failed" error.
does anyone know how to use this?
what i have so far is:
Dim oOutlook As Microsoft.Office.Interop.Outlook.Application = New Microsoft.Office.Interop.Outlook.Application()
Dim oMailitem As Microsoft.Office.Interop.Outlook.MailItem
Dim oAttach As Microsoft.Office.Interop.Outlook.Attachment
oMailitem = oOutlook.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)
oMailitem.To = “Bob@somewhere.com”
oMailitem.Cc = “Roxy@righthere.com”
oMailitem.Subject = "Email Integration with Outlook and VB.Net"
oMailitem.Display()
Im getting a "System.Runtime.InteropServices.COMException: Server execution failed" error.
does anyone know how to use this?