ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

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 ASP Free Forums Sponsor:
  #1  
Old November 3rd, 2009, 01:39 PM
joe_cool joe_cool is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Posts: 2 joe_cool User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 16 m 22 sec
Reputation Power: 0
Problems with an HTML/ASP contact form

Hi, I have a problem with receiving emails through the contact form on my site. I'll try to give you as much information as possible.

I have a contact form on my website. It's on an htm page called 'contact.htm' and it's set up to read from 'contactform.asp' when the user clicks the submit button. When that happens the information the user entered should be emailed to me and the user should be redirected to 'thankyou.htm'.

Up until a few weeks ago everything was working as it should. I have Google Analytics running and I was informed that someone filled in the contact form on my site. However, I didn't receive any emial. The same thing happened a few days later.

At that time the email address the information should've been sent to was a Yahoo address. I thought there may have been problems at Yahoo's end so I contacted them and asked them. Unfortunately corresponding with anyone at Yahoo "customer service" is like pulling teeth and they ended up responding to a completely different question from the one I asked.

I changed the destination email address to be on the safe side. My website is hosted with easyspace so I changed the destination email address to one associated with my domain name. I tested it a few times and everything seemed fine. A couple of people emailed me through the contact form I received both emails without any problems.

However, earlier today someone filled in the contact form and I haven't received the email. I've contacted Easyspace and I await their reply.

It occurs to me that they may have made some updates to their server, which would render the code on my form obselete or at least made it hit and miss. They deny this but I was hoping you could look at the code and tell me if I'm doing anything wrong.

The enquiry emails I'm missing out on are business enquiries so the problem is very frustrating.

The first line of my form on contact.htm is:

Code:
<form name="contact" method="post" action="contactform.asp"> 


The code on 'contactform.asp' is:

Code:
<html>
<body>
<%

' Check that the form has been submitted, and if it has, sort out and send the email. To do this we check the count for the submit button. If the button has been pressed, its count will be greater than 0

Response.Buffer = true

' Create the message for the email
strMessage="A user has filled in the Contact Form on Joe's website." & VbCrlf
strMessage=strMessage & "Here is the information the user entered:" & VbCrlf & VbCrlf
strMessage=strMessage & "Name: " & Request("name") & VbCrlf
strMessage=strMessage & "Email: " & Request("email") & VbCrlf
strMessage=strMessage & "Telephone: " & Request("telephone") & VbCrlf
strMessage=strMessage & "Enquiry: " & Request("enquiry") & VbCrlf

' Create email object and set all the values, setting the from address to be the person who filled in the form

Set myMail=CreateObject("CDO.Message") 
myMail.Subject="Joe Information Request"
myMail.From=Request("email")
myMail.To="info@joeswebsite.net"
myMail.TextBody=strMessage
myMail.Send
set myMail=nothing

'Redirect to Thank you page
response.redirect "thankyou.htm"
%> 
</body>
</html>


Do you see any problems with the code that would make it work one day and fail to work the next?

Any help you could give me would be greatly appreciated. This problem is seriously effecting my business.

Regards,

Joe.

Reply With Quote
  #2  
Old November 3rd, 2009, 02:59 PM
joe_cool joe_cool is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Posts: 2 joe_cool User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 16 m 22 sec
Reputation Power: 0
Something has occurred to me.

I didn't have any problems with my contact form until a few weeks ago. At that time I made a few changes to the text on the contact page and uploaded the updated page. I didn't touch the form or any of the code, I just changed a few prices on the other side of the page.

When the new page was uploaded the problems started. After I changed the destination email address the problems subsided and I was receiving enquiries through the form as normal.

A few days ago I changed one or two prices again and uploaded the updated page and now the form isn't working at all.

Is it possible that Easyspace have made some changes to their server that makes my form hit and miss, and that by uploading the contact page I'm bringing this code to the attention of the server?

That's the only reason I can think of for a form to just stop working over night.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Problems with an HTML/ASP contact form


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





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek