hi
i hae microsift outlook 97 installed on my system. when i include microsoft outlook 8.0 reference and write this peice of code. the vb application shows no error but the mail never reaches out to its destination.
Dim AppOutlook As Outlook.Application
Dim objmail As Outlook.MailItem
Private Sub Form_Load()
Set AppOutlook = CreateObject("Outlook.application"
Set objmail = AppOutlook.CreateItem(olMailItem)
aa.To = "test@test.com"
aa.Subject = "test"
aa.Body = "hello"
aa.Send
End Sub
any help
i hae microsift outlook 97 installed on my system. when i include microsoft outlook 8.0 reference and write this peice of code. the vb application shows no error but the mail never reaches out to its destination.
Dim AppOutlook As Outlook.Application
Dim objmail As Outlook.MailItem
Private Sub Form_Load()
Set AppOutlook = CreateObject("Outlook.application"
Set objmail = AppOutlook.CreateItem(olMailItem)
aa.To = "test@test.com"
aa.Subject = "test"
aa.Body = "hello"
aa.Send
End Sub
any help