Hi, I am trying to send an email using CDONTS. It works on the development machine but when moved to a test machine it fails "Active X can't create object" and it is failing on the Message.Send line (see code below). The test machine has an SMTP server (Ability Server 2.33) set up in the same way as the SMTP server on the development machine. The test machine is Windows 2000 Professional, and the email addresses exist. I suspect that CDONTS is failing to create something, I have tried using a dependency viewer and applying updates to the test machine. Has anyone else had this problem? Any suggestions gratefully received!
Many thanks in advance
Code:
'--------------------------------------------
Set Message = CreateObject("CDONTS.NewMail"
Message.From = "someone@localhost"
Message.To = "someoneelse@localhost"
Message.Cc = ""
Message.Subject = "This is the subject"
Message.Body = "This is the body"
Message.Send
Set Message = Nothing
'--------------------------------------------
Many thanks in advance
Code:
'--------------------------------------------
Set Message = CreateObject("CDONTS.NewMail"
Message.From = "someone@localhost"
Message.To = "someoneelse@localhost"
Message.Cc = ""
Message.Subject = "This is the subject"
Message.Body = "This is the body"
Message.Send
Set Message = Nothing
'--------------------------------------------