Send mail using CDO
a ASP question.
The following is the code i used to send mail to myself.
It should work, but it did not. It shows me this error. Can anybody tell me why?
myMail.Subject="Sending email with CDO"
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
ActiveX component can't create object: 'CDO.Message'
Thanx in advance to all
do NOT go in THERE
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)