ActiveX component can't create object: CDO.Mes

Results 1 to 2 of 2

Thread: ActiveX component can't create object: CDO.Mes

  1. #1
    Gwyneth Guest

    Default ActiveX component can't create object: CDO.Mes

    I&#039m trying to send an email from a web page. Using this code:<BR><BR>Dim strTo<BR>Dim strFrom<BR>Dim iMsg<BR>Set iMsg = CreateObject("CDO.Message")<BR>Dim strHTML<BR><BR>strTo = Session.Value("rptEmail")<BR>strFrom = Session.Value("Email") <BR><BR>strHTML = "&#060;HTML&#062;Message Body&#060;/HTML&#062;"<BR>With iMsg<BR>.To = strTo<BR>.From = strFrom<BR>.Subject = "Da Subject!" <BR>.HTMLBody = strHTML &#039 .TextBody gets generated automatically <BR>.Send<BR>End With<BR><BR>When it runs I get this error message:<BR><BR>Microsoft VBScript runtime error &#039 800a01ad&#039 <BR><BR>ActiveX component can&#039t create object: &#039CDO.Message&#039 <BR><BR>file_location/file_name.asp, line 42 <BR><BR>I know there&#039s nothing wrong with the code, cos it works on my development server, just not on the live one - so I presume this must be a configuration problem, which ain&#039t my forte! I&#039ve spent ages comparing the 2 servers looking for different configurations as to what might be causing this problem, but I can&#039t figure it out.<BR><BR>Any suggestions greatfully accepted!<BR>Cheers.

  2. #2
    Join Date
    Dec 1969

    Default RE: ActiveX component can't create object: CDO

    make sure u have cdonts.dll installed on that new m/c

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts