russellmunday
Technical User
I for some reason can not understand the classes i am having a real hard time with an application using code ive used in vb 6 lots of times in the past to send email.
Dim olapp
Dim olitm
Set olapp = CreateObject("Outlook.Application")
Set olitm = App.CreateItem(0)
With olitm
.to me@myaddr.com
.subject “subject “
.body “body text “
.Send
Set olApp = Nothing
Set olitm = Nothing
End With
End If
but his code does not work with vb.net the error says I have not declared it. I have read about classes and have a real mental block.
Does anyone have a code example to replace mine here that will explian it for me or know of a site where i can get a simple explanation please.
Dim olapp
Dim olitm
Set olapp = CreateObject("Outlook.Application")
Set olitm = App.CreateItem(0)
With olitm
.to me@myaddr.com
.subject “subject “
.body “body text “
.Send
Set olApp = Nothing
Set olitm = Nothing
End With
End If
but his code does not work with vb.net the error says I have not declared it. I have read about classes and have a real mental block.
Does anyone have a code example to replace mine here that will explian it for me or know of a site where i can get a simple explanation please.