IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 27th, 2005, 01:59 PM
joeshmo joeshmo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 9 joeshmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 20 m 29 sec
Reputation Power: 0
"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>&nbsp;</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

Reply With Quote
  #2  
Old July 27th, 2005, 03:28 PM
joeshmo joeshmo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 9 joeshmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 20 m 29 sec
Reputation Power: 0
forget it, I found the cdonts.dll file online and copied it to the %systemroot%\sytem32 folder and registered it.

problem solved.

Reply With Quote
  #3  
Old July 27th, 2005, 05:57 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,820 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 18 h 54 m 40 sec
Reputation Power: 765
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > problems SMTP mail forms on IIS 6.0 (CDONTS)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway