954,136 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

asp form problem

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?

AlanM
Newbie Poster
10 posts since Jun 2004
Reputation Points: 10
Solved Threads: 0
 

Whats it doing that is "not working"? Need some more info on how its not working.

Drew
Junior Poster
166 posts since Apr 2004
Reputation Points: 25
Solved Threads: 7
 

It does not bring an error message it just does not send the E-mail.

AlanM
Newbie Poster
10 posts since Jun 2004
Reputation Points: 10
Solved Threads: 0
 

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.

Drew
Junior Poster
166 posts since Apr 2004
Reputation Points: 25
Solved Threads: 7
 

No it is working. I have another forum on thet same site that is working.

AlanM
Newbie Poster
10 posts since Jun 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You