Crash1hd
11-14-2002, 11:54 AM
I am getting the not enough time on server error msg almost like the script is not closing my page and then going to the last page! I had to reinstall windows and it was working before I reinstalled windows and now its not! I dont understand maybe something was messed up with my script or maybe something else! Help?
here is the script
<%
//Visitor information and Message was now saved to database; To create a simple table for displaying all data from database
//The ORDER BY DateField DESC is what makes everything show up newest to oldest remove to have it go oldest to newest
Set RS = Conn.Execute("select * from Thoughts")
do until RS.fields("SendThoughts") = Request.Form("FromField")
On Error Resume next
Dim ThereMail
Set ThereMail = CreateObject("CDONTS.NewMail")
ThereMail.From = Request.Form("FromField")
ThereMail.To = "(" & RS.fields("SendThoughts") & ")"
ThereMail.Subject = Request.Form("SubjectField")
ThereMail.BodyFormat = 0
ThereMail.MailFormat = Request.Form("MailFormatField")
ThereMail.Body = ("This is an automatic notification that<BR><B>") & _
Request.Form("NameField") & ("<B> Has Added A Msg To Tinas Thoughts Page On ") & date & (" At ") & time & _
("</B> <BR><BR>Goto <A href=Thoughts.asp>Tina's Thoughts Page</A> To View It<BR><BR>") & _
Request.Form("NameField") & ("<BR>Has Inputed The Following<BR><BR>") & _
Request.Form("Displayemail") & ("<BR><BR><a href='" & Request.Form("URLField") & "'>") & _
Request.Form("URLField") & ("</a><BR><BR>") & _
Request.Form("CityField") & (", ") & _
Request.Form("ProvinceField") & (" Canada<BR><BR><B>") & _
Request.Form("BodyField") & _
("<BR><BR>If you would like to be removed from this autonotification click here.<BR>")
ThereMail.Send
Set ThereMail = Nothing
RS.movenext
loop
//Don't forget to close database connection when all is done
Set RS = Nothing
Conn.Close
Set Conn = Nothing
%>
Let me know if you need more info?
here is the script
<%
//Visitor information and Message was now saved to database; To create a simple table for displaying all data from database
//The ORDER BY DateField DESC is what makes everything show up newest to oldest remove to have it go oldest to newest
Set RS = Conn.Execute("select * from Thoughts")
do until RS.fields("SendThoughts") = Request.Form("FromField")
On Error Resume next
Dim ThereMail
Set ThereMail = CreateObject("CDONTS.NewMail")
ThereMail.From = Request.Form("FromField")
ThereMail.To = "(" & RS.fields("SendThoughts") & ")"
ThereMail.Subject = Request.Form("SubjectField")
ThereMail.BodyFormat = 0
ThereMail.MailFormat = Request.Form("MailFormatField")
ThereMail.Body = ("This is an automatic notification that<BR><B>") & _
Request.Form("NameField") & ("<B> Has Added A Msg To Tinas Thoughts Page On ") & date & (" At ") & time & _
("</B> <BR><BR>Goto <A href=Thoughts.asp>Tina's Thoughts Page</A> To View It<BR><BR>") & _
Request.Form("NameField") & ("<BR>Has Inputed The Following<BR><BR>") & _
Request.Form("Displayemail") & ("<BR><BR><a href='" & Request.Form("URLField") & "'>") & _
Request.Form("URLField") & ("</a><BR><BR>") & _
Request.Form("CityField") & (", ") & _
Request.Form("ProvinceField") & (" Canada<BR><BR><B>") & _
Request.Form("BodyField") & _
("<BR><BR>If you would like to be removed from this autonotification click here.<BR>")
ThereMail.Send
Set ThereMail = Nothing
RS.movenext
loop
//Don't forget to close database connection when all is done
Set RS = Nothing
Conn.Close
Set Conn = Nothing
%>
Let me know if you need more info?