[Webinar] Streamline your web hosting managementRegister Today


Problem using CDONTS.dll    error 807007e

Posted on 2010-03-26
Medium Priority
Last Modified: 2012-05-09
I have a Windows 2003 Standard SP2 server running IIS version 6 with 1 custom website.
I am having trouble sending email using CDONTS.dll, below is a copy of the code from "SendEmail.inc":


Set MyCDONTSMail = Server.CreateObject("CDONTS.NewMail")
MyCDONTSMail.From= "Website<no-reply-possible@emaildomain.com>"
MyCDONTSMail.To= Recipient
MyCDONTSMail.Subject= Subject

'-------------------------------------------------- Define Header -------------------------------------------------------------------
messagetext =       Messagetext & "<font face=verdana size='-2'><b>Autogenerated message from Hemelnet</b><br>"

'-------------------------------------------------- Define Message -----------------------------------------------------------------
messagetext =       Messagetext & "<font face=verdana size='-2'> ************************************************************************************************** <br><br>"
messagetext =       Messagetext & "<br>"&Subject&"<br>"
messagetext =       Messagetext & "<br>"&Details&"<br><br>"
messagetext =       Messagetext & "<br>"&LinkMsg&"<br><br>"
'----------------------------------------------------- Define Footer -------------------------------------------------------------------
messagetext =       Messagetext & "<font face=verdana size='-2'> ************************************************************************************************** <br>"
messagetext =       Messagetext & "<br><br>Kind regards <br><br>" & ProperName & "</font>"

' -----------------------------------------------------------------------------------------------------------------------------------------

MyCDONTSMail.BodyFormat = 0
MyCDONTSMail.MailFormat = 0                   
MyCDONTSMail.Body= messagetext
MyCDONTSMail.Importance= 1
set MyCDONTSMail=nothing

'=================================================== Record that email was sent =======================================

Set mailRS = Server.CreateObject("ADODB.Recordset")
      mailRS.open "SELECT * FROM SentMail", objConn, 3, 3
      mailRS("SentBy") = ProperName
      mailRS("SentFrom") = Section
      mailRS("Recipient") = Recipient
      mailRS("CCTo") = CCTo
      mailRS("Subject") = Subject
set mailRS = Nothing

<table width="600">


The code fails on line 11, which is:
Set MyCDONTSMail = Server.CreateObject("CDONTS.NewMail")

with the error:
error '800707e'
C:\INETPUB\WWWROOT\TESTENV\ADMIN\../includes/sendemail.inc, line 11

This error suggests an issue with the registration of the CDONTS.dll file.
I have made sure that CDONTS.dll has been registered with the command:
regsvr32 C:\WINDOWS\System32\CDONTS.dll
Have un-registered and re-registered it again, also registered scrrun.dll, switched off the Anvti Virus temporarily.

Any ideas?


Question by:CSLSKY
LVL 30

Accepted Solution

Brad Howe earned 1000 total points
ID: 28702848
I would suggest using CDOSYS. CDONTS is deprecated.


Same structure, just a supported dll for windows2003.


Assisted Solution

tanujchandna earned 1000 total points
ID: 28744788

There can be only three reasons:

1. Check Default SMTP Virtual Server is running in IIS and configured properly
2. Assigned Everyone (Read, List and Write) permission to C:\Inetpub\mailroot\Pickup directory.
3. Give everyone (read) permission to cdonts.dll under C:\WINDOWS\System32\

Make sure  the cdonts.dll is already registered on your server.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

611 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question