943,508 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 5001
  • ASP RSS
Sep 1st, 2004
0

asp form problem

Expand Post »
I can not get my form to work. here is the code

<% @language="VBSCRIPT" %>

<%
Dim myMail, myBody
myBody ="website title: "& request.form("websitetitle") & vbcrlf & "websiteyurl: " & request.form("websiteurl") & vbcrlf & "websitedesciption: "& vbcrlf & request.form ("websitedes") & vbcrlf & "link: " & request.form("link") & vbcrlf & "e-mail: " & request.form("e-mail")
Set myMail = Server.CreateObject ("CDONTS.NewMail")
myMail.From = request.form("email")
myMail.To = "webmaster@designprofessional.co.uk"
myMail.Subject = "exchange links"
myMail.Body = myBody
myMail.Send
set myMail=nothing

Response.Redirect("thanks.htm")
%>




Can anyone see the problem?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AlanM is offline Offline
10 posts
since Jun 2004
Sep 2nd, 2004
0

Re: asp form problem

Whats it doing that is "not working"? Need some more info on how its not working.
Reputation Points: 25
Solved Threads: 7
Junior Poster
Drew is offline Offline
166 posts
since Apr 2004
Sep 2nd, 2004
0

Re: asp form problem

It does not bring an error message it just does not send the E-mail.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AlanM is offline Offline
10 posts
since Jun 2004
Sep 2nd, 2004
0

Re: asp form problem

If you dont get any kind of errors then the script is fine. Its probably your mail server that is not working. Make sure the emails are getting to it and sent out. Or try using a different email server.
Reputation Points: 25
Solved Threads: 7
Junior Poster
Drew is offline Offline
166 posts
since Apr 2004
Sep 3rd, 2004
0

Re: asp form problem

No it is working. I have another forum on thet same site that is working.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AlanM is offline Offline
10 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: error message when I click a button
Next Thread in ASP Forum Timeline: Pop Up Window at specified time intervals





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC