Hoping people are still reading this thread... I tried the below "simpleton" code and it seems to be doing nothing. When I pop this into an ASP page and load it with a browser, it works fine, but not as a .vbs file just opened from a satelllite computer. Do I need to have it be opened on the server itself?
On Error resume Next
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDO.Message")
If IsObject (MyCDO) Then
MyCDO.From = "email@example.com"
MyCDO.To = "firstname.lastname@example.org"
MyCDO.Cc = ""
MyCDO.Bcc = "email@example.com"
MyCDO.MailFormat = 0
MyCDO.BodyFormat = 0
MyCDO.Importance = 2
MyCDO.Subject = "Test of VBS file email"
TBdy = "<html>"
TBdy = TBdy & CR & "<head></head>"
TBdy = TBdy & CR & "<body>"
TBdy = TBdy & CR & "<p>"
TBdy = TBdy & CR & "Test email sent on " & Now()
TBdy = TBdy & CR & "</p>"
TBdy = TBdy & CR & "</body>"
TBdy = TBdy & CR & "</html>"
MyCDO.HTMLBody = TBdy
Set MyCDO = nothing
Set TBdy = nothing
Response.Write("Email was not sent")