VB Script to send mail using Outlook 2000, 2003, 2007

Unlike sending using CDO, sending using Outlook Object Model (OOM) requires creating an Outlook object and a mail item.
The other problem is with the Outlook permissions alert which pops up when the script is run. This can be circumvented using a free application called ClickYes which is available at http://www.snapfiles.com/get/clickyes.html.
Set olApp = CreateObject("Outlook.Application")
' Create a mail item
Set oMailItem = olApp.CreateItem(0)
OMailItem.To = "test@headquarters.com"
oMailItem.Subject = "Testing with Outlook"
oMailItem.Body = "Testing mail sent using Outlook"
oMailItem.Send