473,378 Members | 1,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

URGENT : I am 100 % sure there is nothing wrong in the ASP code..BUT why is it not working


Hii I am trying to write down a cdont aplication which will email the
survey form to the TO address with the answers checked by the user using
the survey form

I am 100% sure that there is nothing wrong in the code then why is it
not working.

It doesn't work on my machine or it works on the usa web server. whats
wrong. ?

what I have seen is that until I had 2 questions everything was fine.
but the time I added more questions it stopped working

is it that the CDONTS is limited to the number of characters it can send
?

please help

thanks

<%Response.Buffer = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("handled")
reception = Request.Form("recep")
House =Request.Form("clean")
Food = Request.Form("meal")
Staff = Request.Form("opi")
hear = Request.Form("hear")
kaun = request.Form("txtKaun")
Set objMail = Server.CreateObject("CDONTS.NewMail")

MailBody = "Name :" + Request.Form("fromName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("fromEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("txtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("select6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort.com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("FromName")
MailBody = MailBody + " using the Survey Form at
http://www.hawarresort.com" + vbCrLf + vbCrLf + vbCrLf + "FEEDBACK" +
vbCrLf + vbCrLf
MailBody = MailBody + "Q1. How was your reservation Handled ? " +
vbCrLf + "Ans : " + Request.Form("handled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("recep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("clean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("meal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("opi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("hear") + ""
objMail.Subject = "New Survey Feedback By : " +
Request.Form("fromName")
objMail.To = kaun
objMail.Body = MailBody
objMail.Send

'You should always do this with CDONTS.
set objMail = nothing

%>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
4 1504
What doesn't work? What error do you get? What results do you get that you
don't expect?

--

Ray at home
Microsoft ASP MVP
"techy techno" <an**********@hotmail.com> wrote in message
news:u6****************@TK2MSFTNGP11.phx.gbl...

Hii I am trying to write down a cdont aplication which will email the
survey form to the TO address with the answers checked by the user using
the survey form

I am 100% sure that there is nothing wrong in the code then why is it
not working.

It doesn't work on my machine or it works on the usa web server. whats
wrong. ?

what I have seen is that until I had 2 questions everything was fine.
but the time I added more questions it stopped working

is it that the CDONTS is limited to the number of characters it can send
?

please help

thanks

<%Response.Buffer = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("handled")
reception = Request.Form("recep")
House =Request.Form("clean")
Food = Request.Form("meal")
Staff = Request.Form("opi")
hear = Request.Form("hear")
kaun = request.Form("txtKaun")
Set objMail = Server.CreateObject("CDONTS.NewMail")

MailBody = "Name :" + Request.Form("fromName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("fromEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("txtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("select6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort.com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("FromName")
MailBody = MailBody + " using the Survey Form at
http://www.hawarresort.com" + vbCrLf + vbCrLf + vbCrLf + "FEEDBACK" +
vbCrLf + vbCrLf
MailBody = MailBody + "Q1. How was your reservation Handled ? " +
vbCrLf + "Ans : " + Request.Form("handled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("recep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("clean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("meal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("opi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("hear") + ""
objMail.Subject = "New Survey Feedback By : " +
Request.Form("fromName")
objMail.To = kaun
objMail.Body = MailBody
objMail.Send

'You should always do this with CDONTS.
set objMail = nothing

%>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2
On Tue, 24 Feb 2004 04:50:08 -0800, techy techno
<an**********@hotmail.com> wrote:
Hii I am trying to write down a cdont aplication which will email the
survey form to the TO address with the answers checked by the user using
the survey form

I am 100% sure that there is nothing wrong in the code then why is it
not working.

It doesn't work on my machine or it works on the usa web server. whats
wrong. ?
We can't tell. You haven't even told us how you know it's not
working. Error messages, expected results that don't occur, where
your messages, if any, actually end up and so on.

Jeff

what I have seen is that until I had 2 questions everything was fine.
but the time I added more questions it stopped working

is it that the CDONTS is limited to the number of characters it can send
?

please help

thanks

<%Response.Buffer = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("handled")
reception = Request.Form("recep")
House =Request.Form("clean")
Food = Request.Form("meal")
Staff = Request.Form("opi")
hear = Request.Form("hear")
kaun = request.Form("txtKaun")
Set objMail = Server.CreateObject("CDONTS.NewMail")

MailBody = "Name :" + Request.Form("fromName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("fromEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("txtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("select6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort.com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("FromName")
MailBody = MailBody + " using the Survey Form at
http://www.hawarresort.com" + vbCrLf + vbCrLf + vbCrLf + "FEEDBACK" +
vbCrLf + vbCrLf
MailBody = MailBody + "Q1. How was your reservation Handled ? " +
vbCrLf + "Ans : " + Request.Form("handled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("recep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("clean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("meal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("opi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("hear") + ""
objMail.Subject = "New Survey Feedback By : " +
Request.Form("fromName")
objMail.To = kaun
objMail.Body = MailBody
objMail.Send

'You should always do this with CDONTS.
set objMail = nothing

%>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 19 '05 #3
Where do these people come from ? And how do they ever get hired ?
"Jeff Cochran" <jc*************@naplesgov.com> wrote in message
news:40*****************@msnews.microsoft.com...
On Tue, 24 Feb 2004 04:50:08 -0800, techy techno
<an**********@hotmail.com> wrote:
Hii I am trying to write down a cdont aplication which will email the
survey form to the TO address with the answers checked by the user using
the survey form

I am 100% sure that there is nothing wrong in the code then why is it
not working.

It doesn't work on my machine or it works on the usa web server. whats
wrong. ?


We can't tell. You haven't even told us how you know it's not
working. Error messages, expected results that don't occur, where
your messages, if any, actually end up and so on.

Jeff

what I have seen is that until I had 2 questions everything was fine.
but the time I added more questions it stopped working

is it that the CDONTS is limited to the number of characters it can send
?

please help

thanks

<%Response.Buffer = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("handled")
reception = Request.Form("recep")
House =Request.Form("clean")
Food = Request.Form("meal")
Staff = Request.Form("opi")
hear = Request.Form("hear")
kaun = request.Form("txtKaun")
Set objMail = Server.CreateObject("CDONTS.NewMail")

MailBody = "Name :" + Request.Form("fromName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("fromEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("txtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("select6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort.com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("FromName")
MailBody = MailBody + " using the Survey Form at
http://www.hawarresort.com" + vbCrLf + vbCrLf + vbCrLf + "FEEDBACK" +
vbCrLf + vbCrLf
MailBody = MailBody + "Q1. How was your reservation Handled ? " +
vbCrLf + "Ans : " + Request.Form("handled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("recep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("clean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("meal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("opi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("hear") + ""
objMail.Subject = "New Survey Feedback By : " +
Request.Form("fromName")
objMail.To = kaun
objMail.Body = MailBody
objMail.Send

'You should always do this with CDONTS.
set objMail = nothing

%>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #4
Try using '&' (concatenation) as opposed to '+' for building the string.

Also try debugging by outputting the variable values to the browser and not
sending:

objMail.To = kaun
objMail.Body = MailBody

Response.Write "MailTo: " & kaun & "<br/>"
'etc.

'Don't bother sending - we're only debugging.
'objMail.Send

Chris.

"techy techno" <an**********@hotmail.com> wrote in message
news:u6****************@TK2MSFTNGP11.phx.gbl...

Hii I am trying to write down a cdont aplication which will email the
survey form to the TO address with the answers checked by the user using
the survey form

I am 100% sure that there is nothing wrong in the code then why is it
not working.

It doesn't work on my machine or it works on the usa web server. whats
wrong. ?

what I have seen is that until I had 2 questions everything was fine.
but the time I added more questions it stopped working

is it that the CDONTS is limited to the number of characters it can send
?

please help

thanks

<%Response.Buffer = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("handled")
reception = Request.Form("recep")
House =Request.Form("clean")
Food = Request.Form("meal")
Staff = Request.Form("opi")
hear = Request.Form("hear")
kaun = request.Form("txtKaun")
Set objMail = Server.CreateObject("CDONTS.NewMail")

MailBody = "Name :" + Request.Form("fromName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("fromEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("txtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("select6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort.com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("FromName")
MailBody = MailBody + " using the Survey Form at
http://www.hawarresort.com" + vbCrLf + vbCrLf + vbCrLf + "FEEDBACK" +
vbCrLf + vbCrLf
MailBody = MailBody + "Q1. How was your reservation Handled ? " +
vbCrLf + "Ans : " + Request.Form("handled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("recep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("clean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("meal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("opi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("hear") + ""
objMail.Subject = "New Survey Feedback By : " +
Request.Form("fromName")
objMail.To = kaun
objMail.Body = MailBody
objMail.Send

'You should always do this with CDONTS.
set objMail = nothing

%>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Spidah | last post by:
Hi everyone I am having some problems with variable scope in my php classes. I thought varibles declared in classes were visble throughout the class, but I am finding this is not the case. ...
3
by: Rob | last post by:
I have a form - when you click the submit button, it appends a variable to the URL (e.g. xyz.cgi?inputID=some_dynamic_variable) It also opens a new page. Now, that some_dynamic_variable is...
2
by: WantedToBeDBA | last post by:
Hi all, We have db2 installed on AIX box (db2 version - 8.1). Its started and i am able to view 50000(default port) in netstat(netstat -a -n). But when i try to connect using telnet, i am getting...
2
by: LaurenW | last post by:
After many years of working with Access, I am FINALLY required to delete a single field from a table in a linked back-end data base and I must do it fro the FRONT end! There MUST be a way to do...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
5
by: comshiva | last post by:
Hi all, I have converted my existing ASP.NET project from 1.1 to 2.0 and i have found that everything works fine except the linkbutton control in my datagrid which throws an javascript error when...
11
by: scorpion53061 | last post by:
in my head...... I need my application to work with Office 97, 2000, XP and 2003 versions of MS Word and MS Excel. IN order to acomplish this I have to install in different folders: 1....
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.