S
Stephen Noronha
Hi,
I am trying a sample app to send an email from my app
I am getting a "type not defined error"
I have added "Office and Outlook" COM component but still I am getting this
error...
Please advice,
Stephen
Public Sub test()
Dim oApp As Microsoft.Office.Interop.Outlook.Application <- type not defined
oApp = New Microsoft.Office.Interop.Outlook.Application
Dim oMsg As Microsoft.Office.Interop.Outlook.MailItem
oMsg =
CType(oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem
), Microsoft.Office.Interop.Outlook.MailItem)()
oMsg.Subject = "Hello!!!"
oMsg.Body = "Hello World"
oMsg.To = (e-mail address removed)
oMsg.Send()
End Sub
I am trying a sample app to send an email from my app
I am getting a "type not defined error"
I have added "Office and Outlook" COM component but still I am getting this
error...
Please advice,
Stephen
Public Sub test()
Dim oApp As Microsoft.Office.Interop.Outlook.Application <- type not defined
oApp = New Microsoft.Office.Interop.Outlook.Application
Dim oMsg As Microsoft.Office.Interop.Outlook.MailItem
oMsg =
CType(oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem
), Microsoft.Office.Interop.Outlook.MailItem)()
oMsg.Subject = "Hello!!!"
oMsg.Body = "Hello World"
oMsg.To = (e-mail address removed)
oMsg.Send()
End Sub