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.