When I run the following code...

Dim objMail
Set objMail = CreateObject("CDONTS.NewMail")

... I get the error "The specified module could not be found."
Code: 8007007E
Source: (null)

A Microsoft article I downloaded suggested I uninstall and reinstall
Internet Explorer and Outlook Express, which I did. It suggested also that I
reinstall CDOSys.dll by running regsvr32 "\WINNT\System32\CDOSYS.dll", which
I did. The install was successful, but I still cannot run the script.
Suggestions, anybody?

Re: Cannot Access CDONTS by Ray

Ray
Sun Oct 10 23:31:25 CDT 2004

CDONTS is installed when you install the SMTP service (part of IIS) on a
Windows NT machine. It's also installed on a Windows 2000 machine, but only
for legacy support's sake. Make sure that SMTP is installed, and then,
unless you're on an NT machine, instead of using CDONTS, use CDO.

This is for ASP, but the code is VBScript:
http://www.aspfaq.com/show.asp?id=2026

Ray at home




"Sheldon" <Sheldon@discussions.microsoft.com> wrote in message
news:0F51335F-C2ED-4995-9109-E9E4EAE66335@microsoft.com...
> When I run the following code...
>
> Dim objMail
> Set objMail = CreateObject("CDONTS.NewMail")
>
> ... I get the error "The specified module could not be found."
> Code: 8007007E
> Source: (null)
>
> A Microsoft article I downloaded suggested I uninstall and reinstall
> Internet Explorer and Outlook Express, which I did. It suggested also
> that I
> reinstall CDOSys.dll by running regsvr32 "\WINNT\System32\CDOSYS.dll",
> which
> I did. The install was successful, but I still cannot run the script.
> Suggestions, anybody?



Re: Cannot Access CDONTS by Marty

Marty
Sun Oct 10 23:34:04 CDT 2004


"Sheldon" <Sheldon@discussions.microsoft.com> wrote in message
news:0F51335F-C2ED-4995-9109-E9E4EAE66335@microsoft.com...
> When I run the following code...
>
> Dim objMail
> Set objMail = CreateObject("CDONTS.NewMail")
>
> ... I get the error "The specified module could not be found."
> Code: 8007007E
> Source: (null)
>
> A Microsoft article I downloaded suggested I uninstall and reinstall
> Internet Explorer and Outlook Express, which I did. It suggested also
that I
> reinstall CDOSys.dll by running regsvr32 "\WINNT\System32\CDOSYS.dll",
which
> I did. The install was successful, but I still cannot run the script.
> Suggestions, anybody?


Do you have the SMTP service installed and running, I think this is
required. It's a subcomponent of IIS.

Do you have CDONTS.DLL registered on your machine? I think this file has to
be manually copied to Windows 2000, and it's no longer supported. You
should consider using CDO, which ships with Windows 2000 and later.

"CDONTS) was originally implemented to use with Microsoft Commercial
Internet Server (MCIS), and was included in the Windows NT Option Pack.
CDONTS was also included as part of Windows 2000 for compatibility with
Windows NT. CDONTS is not included with Microsoft Windows XP and subsequent
releases of Windows. Microsoft Collaboration Data Objects for Windows 2000
(CDOSYS) was implemented and included as a Windows 2000 operating system
component. The existing code that is based on CDONTS must migrate to
CDOSYS."

http://support.microsoft.com/?kbid=810702

http://support.microsoft.com/?kbid=177850




Re: Cannot Access CDONTS by Torgeir

Torgeir
Mon Oct 11 01:48:25 CDT 2004

Sheldon wrote:

> When I run the following code...
>
> Dim objMail
> Set objMail = CreateObject("CDONTS.NewMail")
>
> ... I get the error "The specified module could not be found."
> Code: 8007007E
> Source: (null)
Hi

CDONTS has been deprecated in WinXP, use CDO.Configuration/CDO.Message
instead (works in Win2k as well), more about this here:

How do I send e-mail with CDO?
http://www.aspfaq.com/show.asp?id=2026


Note the sometimes-needed requirement to fill in the smtp server name:

http://groups.google.com/groups?threadm=%23Tz6Nz5XEHA.1652%40TK2MSFTNGP09.phx.gbl


Some CDO info here as well:

Sending mail from Excel with CDO
http://www.rondebruin.nl/cdo.htm


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx