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?

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

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

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.