• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

ASP Mail not working,CDO error message

S

steve009

Guest
Hi Master minds

I have issue in plesk 7.6 windows, From server unable to use asp mail facility, every body getting error like "Could not access ' CDO.Message' object".As i read other articles on Plesk forums,(1) i have to white list 127.0.0.1 on control panel that is for plesk6.5, is this same thing applicable to Plesk7.6 or not? (2) I am not able to white list 127.0.0.1 on plesk panel due to subnet also required with ip address in plesk 7.6 (3) How can we find wether CDO component installed or not

Please provide any solution for the same.

Reagards
Mark
 
Hi Dude,

I will try to assist you for this. First of all make sure about your cdosys code. I have pasted a sample test at the end of my post.

First of all you need to make sure that the host you are using is added in previleged ip's list.

For this, Login to RDP > Mail Enable Administrator > Servers > Connector > SMTP (Properties) > Relay > Previlaged IPs > Add all available IP's here.
Example:
127.0.0.1
66.11.22.33
82.11.22.33

(Available IP's are those which you have available in Plesk either shared or exclusive.

Now restart SMTP service, Done.

The sample code is here:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
'Create the e-mail server object
Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
' Outgoing SMTP server
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields.Update

' Update the CDOSYS Configuration
Set objCDOSYSMail.Configuration = objCDOSYSCon
objCDOSYSMail.From = "[email protected]"
objCDOSYSMail.To = "[email protected]"
objCDOSYSMail.Subject = "CDOSYS is running, Check your code"
objCDOSYSMail.HTMLBody = "This is the body "
objCDOSYSMail.Send
'Close the server mail object
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Email</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Email has sent!
</body>
</html>
 
Hi,
Thanks for your feedback,

There was lot of confusions, pls clarify me.What methods i need to follow for sending emails via ASP on windows 2003 server.

Require ment: My customers are required to send emails using ASP. They are using CDO etc. For this what all things need to done by me on server.

OS : windows 2003
Plesk : 7.6 version
Email : Mail enable SMTP 25

When they are trying to send, present they are getting error like "CDO.Message.1 error '80040220'",The "SendUsing" configuration value is invalid./test.asp, line 111.

Regards
 
Hi,

Thanks a lot for your script. When i run the script with out any error scripts is running successfully.

I need clarification like, Some tech guys suggested to enable IIS >> SMTP email service, What is the use of that. 2) Suggested to change the port no 2525 if at all 25 blocked for other smtp service on server What is the use of that.
3) The above method can be used for ASP Mail.

Thanks a tonne for your help.

Regards
steve
 
CDO will use the IIS SMTP server rather than the MailEnable SMTP server. You will also have to grant the IIS/Plesk user (i.e. IUSR_whatever) "Change" access to the mailroot folder so it can drop messages into the queue.
 
Since Plesk 7.6 ( I believe ) Plesk installation locks things down pretty tight in terms of File System permissions with DENY permissions set almost everywhere except where necessary for the groups PSACLN and PSAADM - this is also applied to the C:\Inetpub\Mailroot directory and the \pickup subdirectory which CDO SYS can use depending on script config (by port is another option)

If you remove these DENY permissions you should find it operates fine once more.
 
Back
Top