| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CDOSYS & CDONTS don't work at all !! (realy wierd)
We have the following configuration:
1 Virtuozzo Hardware node running under W2K3 Datacenter x86 64bit Edition 1 Virtual Container running W2K3 Datacenter x86 64bit Edition and of course running inside the here above Virtuozzo Node. 1 Plesk 8.6 running into the here above Virtual container. For info: Mail Enable is running into that Container for notification needs, and Plesk notification are going out normaly via Mail Enable SMTP server (via port 80) on the virtual Container. What we need in extra to be operative before going into production with that container: The native CDOSYS component, AND ALSO the old CDONTS component and this because we don't want our clients to rewrite the pages who are using CDOSYS/CDONTS (on our old server) and so the migration will be transparent for them without script changes. Note: CDONTS was installed by following the Parallels KB recommendations and registration via regsvr32 went just fine. Issue encountered: We never managed to have the native CDOSYS component working and this for an unknow reason ??!! and even before installing the CDONTS on that Virtual container. AND THE SAME GOES for CDONTS component, not working either ??!! Of course, we took care to change the SMTP default Port 25 on IIS and changed it to 8025 in order to avoid conflict with default port (80) used by Mail Enable. For the CDOSYS/CDONTS test on that container, we have used 2 very simple and basic scripts (one for CDOSYS and one for CDONTS) Those 2 scripts are used for test purpose on regular W2K3 servers (with no Virtuozzo nor Plesk installed on it) and they are working JUST FINE on such server. And so, a bad test script on our side is not the issue. Additional info: When trying our CDOSYS Test script, we obtain the following error message: CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. /cdosystest.asp, line 15 Line 15 is equal to: myMail.Send When trying our CDONTS Test script, we obtain the following error message: Server object error 'ASP 0178 : 80070005' Server.CreateObject Access Error /cdontstest.asp, line 11 The call to Server.CreateObject failed while checking permissions. Access is denied to this object. Line 11 is equal to: Set MAILCDO = Server.CreateObject("CDONTS.NewMail") Resume: Apparently it seems to be something related to permissions,etc.. In the mean time we tried to give some rights (read + Exec) to the .DLL's files without too much success. And as Plesk does is own config,etc.. we simply don't want to play around with permissions here and ther but would like to make sure that the permissions are exactly the one needed. If somene did allready face the same issue, your recommendation, help would be greatly appreciated. Thank you in advance. |
|
#2
|
||||
|
||||
|
hi for this
Code:
CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. /cdosystest.asp, line 15 post code here. Code:
Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
/cdontstest.asp, line 11
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
Line 11 is equal to: Set MAILCDO = Server.CreateObject("CDONTS.NewMail")
this error meant cdonts is not registered on your sever.better u use cdomessage for sending an email.so post the code here. hope it make some sense.
__________________
Nothing is Impossible bcoz IMPOSSIBLE itself says.. I M POSSIBLE........................ Be cool !!!!!!!!
|
|
#3
|
|||
|
|||
|
Hi Guddu,
Thanks a million for replying. For CDOSYS please find the code here under : [code] <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <html> <head> <title>CDOSYS TEST SCRIPT</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="somename@somedomainhere.com" myMail.To="someothername@someotherdomainhere.com" myMail.TextBody="CDOSYS Messenge delivery test." myMail.Send set myMail=nothing %> </body> </html> [code] Regarding CDONTS, here is the code also in case of : [code] <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <html> <head> <title>CDONTS TEST SCRIPT</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <% Dim MAILCDO Set MAILCDO = Server.CreateObject("CDONTS.NewMail") %> <% 'envoyer à qui? MAILCDO.To = "somename@somedomain.com" ' de la part de qui ? MAILCDO.From = "someothername@someotherdomain.com" ' texte à envoyer Dim CorpsDuTexte CorpsDuTexte = "Le service CDONTS est opérationel." 'Sujet MAILCDO.Subject = "Essai de CDONTS" MAILCDO.Body = CorpsDuTexte MAILCDO.Importance = 0 ' Normal MAILCDO.Send set MAILCDO=Nothing %> </body> </html> [code] well that is the wierd thing it was well registered .... the thing I have to admit was that the regular : regsvr32 cdonts.dll did not work ... But crawling the web gave me some other tip to register it ... click the cdonts.dll and drag and drop it on the regsvr32.exe file ... By doing this I had a positiv message saying that .DLL was successfully registered. anyway neither one (CDO and CDONTS) never worked on htat server. Note: I know for using CDO instead of CDONTS but I cannot afforth to ask all the customer to rewrite their code (most of them are using CDONTS anyway, so I need it in fact :-( I repeat that those above script are working JUST fine on regular W2K3 x86 servers. Thanks in advanc efor your help. |
|
#4
|
||||
|
||||
|
hi
see the bold part i added into your code.instead of localhost put your smtp server name and port number i think in your case it is 25. Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>CDOSYS TEST SCRIPT</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Set cdoConfiguration = Server.CreateObject ("CDO.Configuration")
' Outgoing SMTP server
With cdoConfiguration
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Fields.Update
End With
Set myMail=CreateObject("CDO.Message")
SET myMail.Configuration = cdoConfiguration
myMail.Subject="Sending email with CDO"
myMail.From="somename@somedomainhere.com"
myMail.To="someothername@someotherdomainhere.com"
myMail.TextBody="CDOSYS Messenge delivery test."
myMail.Send
set myMail=nothing
%>
</body>
</html>
|
|
#5
|
|||
|
|||
|
Hi again Gudu!
Perfect the CDOSYS is operational ! But how come the original script did not work as it is working perfectly without the smtp, port, configuration etc. and this on other regular servers ? Regarding the CDONTS pending problem, do you have any idea what I could do in order to force him to work on the server I am testing ? Should I simply reinstall it? Do you know have a tip to make sure the CDONTS.DLL is out of the regsrv32 prior to reinstalll it or is it not necessary to uninstall it prior an eventual reinstall operaiton. Thanks a lot for your help. |
|
#6
|
||||
|
||||
|
hi
u follow this link u will get better an idea about cdo and cdonts component. http://classicasp.aspfaq.com/email/...l-with-cdo.html cheers!! |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows OS > CDOSYS & CDONTS don't work at all !! (realy wierd) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|