Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send email using CDONTS returns error

Status
Not open for further replies.

kamm

Programmer
Dec 4, 2000
17
GB
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
'--------------------------------------------
 
er. did u also distribute the CDONTS control along with ur exe?

Known is handfull, Unknown is worldfull
 
Yep! Already checked that...any other ideas?
 
how did u do it? did u use PDW? or did u just give the file along with the program?

Known is handfull, Unknown is worldfull
 
A file along with the program (and I registered it), I also included GAPI32
 
yeah its better to do a PDW. who knows it might be some other dll file other than the CDONTS...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top