Results 1 to 2 of 2

Thread: Send mail using CDO

  1. #1
    Join Date
    Oct 2004

    Lightbulb Send mail using CDO

    a ASP question.

    The following is the code i used to send mail to myself.
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    It should work, but it did not. It shows me this error. Can anybody tell me why?
    ActiveX component can't create object: 'CDO.Message'
    Note : I simply used two asp page, lets name it First.asp and Second.asp. Where the first.asp have a button which will post to the Second.asp. The send mail code is in the Second.asp

    Thanx in advance to all
    do NOT go in THERE

  2. #2
    Join Date
    Feb 2003
    Sounds like you don't have cdosys.dll registered on your machine.

    Go to your registry editor (start, run, regedit) and look under HKEY_CLASSES_ROOT for CDO.Message

    If it isn't there (i bet it isn't) look in explorer: c:\winnt\systm32\cdosys.dll.

    If it's there, register it. From the command shell navigate to system32 and type in regsvr32 cdosys.dll. If it's not there, you'll need to get a copy of it. Installing MSOutlook, VB6 or any number of applications should install it. You can (i think) download a copy from Microsoft too.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles