**** Example ****
Dim objOLApp as Outlook.Application
Dim objMail as Outlook.MailItem
Set objOLApp = CreateObject("Outlook.Application")
Set objMail = objOLApp.CreateItem(olMailItem)
With objMail
' When adding a recipient, it always defaults to TO
.Recipients.Add ("Display Name or email addy")
.Subject = "First message from automation"
.HTMLBody = "<HTML><BODY>Hello from VB 5/6 when using
automation.</BODY></HTML>"
End With
' Send it
'objMail.Send
' Display it
objMail.Display
**** End Example ****
Don't forget to add a reference to the Outlook object model in your project.
Quote:
> Can someone tell me how I can send an Outlook e-mail in HTML using VB 5/6?
> Examples would be a great help.
> Thanks in advance!
> MD