Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 4th, 2005, 03:10 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Uplaoding IIS

hi,

i am new to computer science.I want to develop a page in which a user
can send and receive email.For initial testing i made a simple page
of HTML which containsa single texbox for subject and a text area
for writing message.Through that page i called an ASP page which
receive that values and send it to our desired email address.The
 code of ASP page is ....
/////////////////////////////////////////////////////
<%@ language=VBScript %>

<%
dim strname
strsub = Request("subtxt")

dim strmsg
strmsg = Request("messagetxt")

Response.Write(strsub & " and " )
Response.Write(strmsg)

dim maymail
Set mymail = Server.CreateObject("CDO.Message")

Dim iConf
Set iConf = CreateObject("CDO.Configuration")

Dim Flds
Set Flds = iConf.Fields
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
Flds( _
 "http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") _
  = "F:\inetpub\mailroot\pickup"
Flds.Update

Set mymail.Configuration = iConf

mymail.Subject = strsub
mymail.TextBody = strmsg
mymail.From = "[email protected]"
mymail.To = "[email protected]"
mymail.Send

Set mymail=nothing

Response.Write("Message Sent.Thanks for using my service")
%>

But the problem is when i uploaded the pages it displays the first
HTML page and when i passed the values to ASP page it displays message
"Your page cannot be found".Where i have made a mistake.Do i have to
upload the server as well.If YES then how can i upload the IIS server.
Please help me in this situation.
 
Old August 4th, 2005, 06:30 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;Your page cannot be found
This is all the error says? Does it also say 404 error? If so you simply have a typo in the page name of path.

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
iis.msc equivalent in IIS for Win XP Pro? RealDHelix Classic ASP Basics 14 March 18th, 2007 08:28 PM
Retrieving and Uplaoding Images in Database vijay_83 ASP.NET 1.0 and 1.1 Professional 1 October 5th, 2006 02:07 AM
Retrieving and Uplaoding Images in DataBase vijay_83 ASP.NET 1.0 and 1.1 Basics 1 October 4th, 2006 03:24 PM
iis anusreesadanand Forum and Wrox.com Feedback 3 August 2nd, 2006 01:37 PM
CreateObject error on IIS 4 but not IIS 5 timtom Classic ASP XML 1 December 5th, 2003 01:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.