| | |
asp form problem
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2004
Posts: 10
Reputation:
Solved Threads: 0
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?
<% @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?
•
•
Join Date: Jun 2004
Posts: 10
Reputation:
Solved Threads: 0
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.
![]() |
Similar Threads
- Building asp form (ASP)
- ASP Form (ASP)
- ASP Form problem - email not coming through (ASP)
- Weird ASP/SQL Problem (ASP)
- MS Excel data to ASP form (ASP)
Other Threads in the ASP Forum
- Previous Thread: error message when I click a button
- Next Thread: Pop Up Window at specified time intervals
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7





