473,804 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Buff er = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("h andled")
reception = Request.Form("r ecep")
House =Request.Form(" clean")
Food = Request.Form("m eal")
Staff = Request.Form("o pi")
hear = Request.Form("h ear")
kaun = request.Form("t xtKaun")
Set objMail = Server.CreateOb ject("CDONTS.Ne wMail")

MailBody = "Name :" + Request.Form("f romName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("f romEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("t xtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("s elect6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort .com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("F romName")
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("h andled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("r ecep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("c lean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("m eal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("o pi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("h ear") + ""
objMail.Subject = "New Survey Feedback By : " +
Request.Form("f romName")
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 1527
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**********@h otmail.com> wrote in message
news:u6******** ********@TK2MSF TNGP11.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.Buff er = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("h andled")
reception = Request.Form("r ecep")
House =Request.Form(" clean")
Food = Request.Form("m eal")
Staff = Request.Form("o pi")
hear = Request.Form("h ear")
kaun = request.Form("t xtKaun")
Set objMail = Server.CreateOb ject("CDONTS.Ne wMail")

MailBody = "Name :" + Request.Form("f romName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("f romEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("t xtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("s elect6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort .com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("F romName")
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("h andled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("r ecep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("c lean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("m eal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("o pi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("h ear") + ""
objMail.Subject = "New Survey Feedback By : " +
Request.Form("f romName")
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**********@h otmail.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.Buf fer = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("h andled")
reception = Request.Form("r ecep")
House =Request.Form(" clean")
Food = Request.Form("m eal")
Staff = Request.Form("o pi")
hear = Request.Form("h ear")
kaun = request.Form("t xtKaun")
Set objMail = Server.CreateOb ject("CDONTS.Ne wMail")

MailBody = "Name :" + Request.Form("f romName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("f romEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("t xtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("s elect6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort .com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("F romName")
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("h andled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("r ecep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("c lean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("m eal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("o pi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("h ear") + ""
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******** *********@msnew s.microsoft.com ...
On Tue, 24 Feb 2004 04:50:08 -0800, techy techno
<an**********@h otmail.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.Buf fer = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("h andled")
reception = Request.Form("r ecep")
House =Request.Form(" clean")
Food = Request.Form("m eal")
Staff = Request.Form("o pi")
hear = Request.Form("h ear")
kaun = request.Form("t xtKaun")
Set objMail = Server.CreateOb ject("CDONTS.Ne wMail")

MailBody = "Name :" + Request.Form("f romName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("f romEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("t xtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("s elect6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort .com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("F romName")
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("h andled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("r ecep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("c lean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("m eal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("o pi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("h ear") + ""
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**********@h otmail.com> wrote in message
news:u6******** ********@TK2MSF TNGP11.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.Buff er = True %>
<%
Dim objMail
Dim MailBody
Dim kaun
Dim reserv
Dim reception
Dim House
Dim Food
Dim Staff
DIm hear

reserv = Request.Form("h andled")
reception = Request.Form("r ecep")
House =Request.Form(" clean")
Food = Request.Form("m eal")
Staff = Request.Form("o pi")
hear = Request.Form("h ear")
kaun = request.Form("t xtKaun")
Set objMail = Server.CreateOb ject("CDONTS.Ne wMail")

MailBody = "Name :" + Request.Form("f romName") + "!" + vbCrLf + vbCrLf
+ " Email :" + Request.Form("f romEmail") + vbCrLf + vbCrLf
MailBody = MailBody + "Phone # " + Request.Form("t xtPhone") + vbCrLf +
vbCrLf + "Country : " + Request.Form("s elect6") + vbCrLf + vbCrLf
MailBody = MailBody + "http://www.hawarresort .com/" + vbCrLf + vbCrLf +
vbCrLf + "Sent by " + Request.Form("F romName")
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("h andled") + vbCrLf + vbCrLf
MailBody = MailBody + "Q2. How was your checkin at the Reception ? " +
vbCrLf + "Ans: " + Request.Form("r ecep") + vbCrLf + vbCrLf
MailBody = MailBody + "Q3. How was the Housekeeping Service and
Cleanliness ?" + vbCrLf + "Ans: " + Request.Form("c lean") + vbCrLf
MailBody = MailBody + "Q4. How was the Food and Beverage Service and
Quality ? " + vbCrlF + "Ans: " + Request.Form("m eal")
MailBody = MailBody + "Q5. Your Opinion about the Staff ?" + vbCrLf +
"Ans: " + Request.Form("o pi") + vbCrLf
MailBody = MailBody +"Q6. How did you know about the Hawar Resort Hotel
? " + vbCrLf + "Ans: " + Request.Form("h ear") + ""
objMail.Subject = "New Survey Feedback By : " +
Request.Form("f romName")
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
6274
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. What is happening is that when functions in my class go to access variables they are returning nothing even though they have had values assigned.. Any idea what is going on?
3
2447
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 actually the name of a form element on the parent window. On the new page, I have this javascript: ---- var var2 = location.search.substring(9); document.write(var2)
2
9982
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 this error. I don't know how to correct it. Till yesterday its working well. I don't know what is the problem now.. Help me guys. Its very urgent
2
3212
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 this. SQL ALTER TABLE code does not work because the table is linked. I cannot find a "Delete field" method in DAO. I hope I'm overlooking it. Any advice will be appreciated.
5
3031
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 need to send data from my server via the post method to the payment server. The payment server does not run asp.net. I dont know what they run. The payment server then returns to my server with the
16
2973
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: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at...
5
2607
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 clicked. I thought the control might be the problem, so i deleted the old control and binded the new linkbutton control but am still getting the same error. Am using visual studio 2005. Source code inside my grid:...
11
1860
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. remove my Office 2003 2. Install Office 97 Word and Excel 3. Install Office 2000 Word and Excel
13
3569
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 some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but none of the server-side code is rendered. If I view the source of the page, the code (and page...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10354
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10359
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10101
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9177
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.