|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
"page cannot be displayed" .asp SMTP mail web forms on IIS 6.0 (CDONTS)
I am migrating a Windows 2000 Server Web Server with an older version of IIS to a new Windows 2003 Server with IIS 6.0.....Everything is working properly accept web forms which simply send an email via a SMTP service installed in IIS:
this is the code: Code:
<%
Dim myCDO
%>
<html>
<head>
<title>Time Off Request From </title>
</head>
<body LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<%
dim DateSub
DateSub = Date
Dim ReqTime
ReqTime = Request.Form("RequestType")
Dim Who
Who = Request.Form("SendTo")
Dim EmailFrom
EmailFrom = Request.Form("From")
Dim Dept
Dept = Request.Form("Department")
Dim Name
Name = Request.Form("Name")
Dim DaysStart
DaysStart = Request.Form("Start")
Dim DaysFinish
DaysFinish = Request.Form("Finish")
Dim VacReason
VacReason = Request.Form("S1")
Dim FinalDate, FinalBody
FinalDate = DateSub
FinalBody = "Date of Form Submition: " & FinalDate & chr(13) & "Department: " & Dept _
& chr(13) & "Name: " & Name & chr(13) & "Requested Time: " & ReqTime _
& chr(13) & "Start Date: " & DaysStart & chr(13) & "Finish Date: " & DaysFinish _
& chr(13) & "Reason: " & VacReason
%>
<%
Set myCDO = Server.CreateObject("CDONTS.NewMail")
myCDO.From = EmailFrom
myCDO.To = Who
myCDO.Cc = EmailFrom
myCDO.Subject = "Time Off Request"
myCDO.Body = FinalBody
myCDO.Send
Set myCDO = Nothing
%>
<p align="center"><big>Thank you for submitting your Request. </big></p>
<p> </p>
<%
Response.Write("To: ")
Response.Write(Who)
Response.Write("<BR>")
Response.Write("Requested Time: ")
Response.Write(ReqTime)
Response.Write("<BR>")
Response.Write("Start Date: ")
Response.Write(DaysStart)
Response.Write("<BR>")
Response.Write("Finish Date: ")
Response.Write(DaysFinish)
Response.Write("<BR>")
Response.Write("Reason: ")
Response.Write(VacReason)
Response.Write("<BR>")
%>
</body>
</html>
I get a page cannot be displayed. Windows web site logging shows this error /forms/toreqest3.asp |57|ASP_0177_:_800401f3|Server.CreateObject_Failed In doing some research, I've found that CDONTS was eliminated from Microsoft as being supported under IIS6/Server 2003.......I tried replacing setmyCDO = Server.CreateObject("CDONTS.NewMail") with just set myCDO = Server.CreateObject("CDO.MESSAGE") supposedly that is the proper syntax for CDOSYS the format supported under 2003.....It still says "Page cannot be displayed" on submitting the form that leads to this page. I checked the windows logging for the site and the error is on trying to process the page: POST /forms/toreqest3.asp |63|800a01b6|Object_doesn't_support_this_property_or_method:_'Body' torequest3.asp is the page thats failing Last edited by joeshmo : July 27th, 2005 at 02:05 PM. Reason: change title |
|
#2
|
|||
|
|||
|
forget it, I found the cdonts.dll file online and copied it to the %systemroot%\sytem32 folder and registered it.
problem solved. |
|
#3
|
|||
|
|||
|
Please don't crosspost.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > problems SMTP mail forms on IIS 6.0 (CDONTS) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|