Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 13th, 2005, 09:59 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with CDONTS

Hi!

anybody knows why i get this msg:

"ActiveX component can't create object"

when i was running my application? the code is:

    Dim iMsg as CDONTS.NewMail
    Set iMsg = CreateObject("CDONTS.NewMail")

    strSubject = SUBJECT
    strBody = BODY
    strFrom = ORIG
    strFrom = Replace(strFrom, " ", ".")
    strTo = destination

    iMsg.From = strFrom
    iMsg.To = strTo
    iMsg.Subject = strSubject
    iMsg.Body = "Hi my name is Beth"
    iMsg.Send

thanks!

 
Old January 14th, 2005, 12:47 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

This is because cdonts.dll is missing or not registered. To fix it

1) check whether cdonts.dll is there on server.

2) if not present, download it (or take from outlook installation CD) and put it in windows system folder.

3) run regsvr32 cdonts.dll to register this dll.

cdonts will not work in windows 2003. There you have to use cdo.message object.





Similar Threads
Thread Thread Starter Forum Replies Last Post
using CDONTS maunishq ASP.NET 1.0 and 1.1 Basics 1 August 23rd, 2007 09:35 AM
CDONTS mikedeepak Classic ASP Components 3 August 26th, 2004 06:52 PM
CDONTS preeti Wrox Book Feedback 1 August 11th, 2004 09:39 AM
CDONTS asims12 Classic ASP Basics 1 November 13th, 2003 10:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.