Nån som kan se vaför jag får Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. nåt lustigt fel när mailet ska skickas
/sendPass.asp, line 15
med denna kod
<%
email=request.form("txtUser")
Set test=objConn.Execute("Select * From tblUsers where email='"&email&"'")
If not test.eof Then
response.redirect "/lostPass.asp?error=noMail"
Else
Dim sTo
Dim sTextBody
Dim objMail
Dim email
password=test("password")
sTo = email
sFrom = "info@webbisen.com"
sSubject = "Förlorat lösenord"
sTextBody = comments
'Create the mail object and set key properties
Set objMail = Server.CreateObject("CDO.Message")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBody = "Ditt lösenord är " &password
'Send the email and clean up
objMail.Send
Set objMail = Nothing
response.redirect "/lostPass.asp?success=sent"
End If%>