Link to home
Start Free TrialLog in
Avatar of Nandhini
Nandhini

asked on

cdonts.dll installation

I have to develop an application in asp to send and receive mails.

the application is for use within our local intranet

system configuration:
windows 2000
iis5.0

how to install cdonts.dll?
SOLUTION
Avatar of pkaleda
pkaleda

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pkaleda
pkaleda

It should be there in a standard win2000 install with IIS 5.0.  You can grab it from any 2000 machine and save it there and register it if is not there.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nandhini

ASKER

i searched for cdonts.dll file
it is there in the following paths
c:\winnt\system32
c:\winnt\servicepackfiles\i386

----------------------------------------------------------------
Set mail = Server.CreateObject("CDONTS.NewMail")

gave the following error

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/searchengine/CDONTS/send_msg.asp, line 2

Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
Server.CreateObject Failed means cdonts is not installed or not registered. In ur case u've to install cdonts ....
I have installed cdonts

i get some error on excuting the following stmts

<%
   Set ml = Server.CreateObject("CDONTS.NewMail")
   ml.to="nandh_79@rediffmail.com"
   ml.body="hello from eskill"
   ml.send
   set ml = Nothing
%>

error stmt:

error '80070003'
/searchengine/CDONTS/send_msg.asp, line 5
You need to setup SMTP serer. When you install SMTP server, CDONTS IS registered automatically. BTW.. If your server is running on Win2000, then i suggest that you use CDOSYS rather than CDONTS. CDOSYS is highly configurable.. unlike CDONTS.

Cheers!!
hi all,
i will get back after installing SMTP server
SMTP server is installed on a proxy server

but iis is not installed in that system

how to create the virtual directory to test my appln
you need to setup SMTP in the server from which you are running your code from. You can configure the SMTP server to relay the mails to the internet facing server if security is an issue. Besides CDONTS wont get installed on the server if you install SMTP on some other server.

>>how to create the virtual directory to test my appln

Open the IIS console (Click Start | Run and type in Inetmgr and click OK). In the IIS console, expand the tree and select Default website. RightClick and select New Virtual Directory. Provide a name for the Virtual directory, Click Next. Now browse to the folder which contains your asp pages and set it as the directory. Click through to finish.

In the browser window, access the files in the new virtual directory by typing in http://localhost/virtualdirectoryname/filename.asp or http://servername/virtualdirectoryname/filename.asp

For more info on how to set up SMTP, refer :http://techrepublic.com.com/5100-6268-1059889-1.html

Cheers!!
Hi, Any updates?

Cheers!!
sorry for the delayed reply

When i send mail using the following code the mails gets stored in the queue folder and is not delivered.what's wrong

Set mobj = Server.CreateObject("CDONTS.NewMail")
mobj.to = "x@rediffmail.com"
mobj.from = "x@rediffmail.com"
mobj.subject = "hello"
mobj.body = "test message"
mobj.send
set mobj = Nothing

IIS SMTP service is now installed
i am trying to send mail from a machine that doesn't have any mail server,but connected to a mail server.

my system has iis5.0 with smtp service
I have also set the mail servers IP address in the smart host
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Is it possible to receive mails with CDOSYS?
Could you be more specific?. Are you looking for a mail client like outlook?. CDOSYS & CDONTS can be used only for sending out emails. If you are looking to retrieve emails from POP3 email boxes, then you might need to buy a POP3 email component. As far as i know, there are no free ones available. The ones's that were are no longer available for free download.

Cheers!!
sorry for not being specific

i am trying to create an application much like outlook
Did you manage to send out the emails using CDOSYS?.

I think we are going off topic here. Please post a separate question.

Cheers!!
i tested ur code today morning  but till now i didn't receive that mail
Post the code that you have used... Also, are you sure that you have specified the correct mail server parameter?. If you want to try and send emails to internet, then make sure that SMTP server is configured properly and the machine is connected to the internet.

Cheers!!
<%
' ** USAGE**
' ** CALL SendMailCDOSYS("a@b.c","x@y.z","test","test",False,"localhost")

Sub SendMailCDOSYS(strFrom,strTO,strSubject,strMailBody,blnHTML,sMailServer)
On Error Resume Next
     Dim objCDOConf,objCDOSYS
     ' ** CREATE THE E-MAIL SERVER OBJECT **
     Set objCDOSYS = Server.CreateObject("CDO.Message")
     Set objCDOConf = Server.CreateObject ("CDO.Configuration")

     ' ** SET AND UPDATE FIELDS PROPERTIES **
     With objCDOConf
          ' ** OUT GOING SMTP SERVER **
          .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = sMailServer
          ' ** SMTP PORT **
          .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")  = 25
          ' ** CDO PORT **
          .Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
          ' ** TIMEOUT **
          .Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
          .Fields.Update
     End With

     ' ** UPDATE THE CDOSYS CONFIGURATION **
     Set objCDOSYS.Configuration = objCDOConf

     With objCDOSYS    
          ' ** WHO THE E-MAIL IS FROM **
          .From = strFrom

          ' ** WHO THE E-MAIL IS SENT TO **
          .To = strTo
                   
          ' ** THE SUBJECT OF THE E-MAIL **
          .Subject = strSubject
           
          ' ** SET THE E-MAIL BODY FORMAT (HTMLBody=HTML TextBody=Plain) **
          If blnHTML = True Then
          .HTMLBody = strMailBody
          Else
          .TextBody = strMailBody
          End If
           
          ' ** SEND THE E-MAIL **
          .Send
     End with                    
       
     ' ** CLOSE THE SERVER MAIL OBJECT **
     Set objCDOSYS = Nothing
End Sub
%>

<%
      CALL SendMailCDOSYS("nandh_79@yahoo.com","nandh_79@yahoo.com","test","test",False,"192.168.0.100")
%>
Is the SMTP server (192.168.0.100) connected to the internet?. Is the server running your code and the SMTP server on the same network?.. Otherwise i dont see no reason for the mail to fail.

Cheers!!
The SMTP server is connected to the internet

i don't find any files badmails folder or in the queue folder

i think this means that the server has picked up the mails

is it right?
Yeah..That means the server has picked up the mails. Just try sending a new mail from yahoo to the same adress.. see if its not thier problem. Also, check to see if the mails are not in the 'bulk Mail' folder. Alternately, try using another email address (hotmail maybe??) and see if it works.

Cheers!!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sajith,

i will get back after testing
Hi,
Any Updates?. Do you need any further assistance with this?. Please close this question if no further assistance is needed.
If you need help closing this question, please refer to https://www.experts-exchange.com/help.jsp#hs5 on how to close a question.

Cheers!!