Hello everyone. This is my first post and I could use any help you are willing to give me. I am trying to send a user a forgotten password. I'm posting the code below to show you exactly how I'm trying to do it. Basically, a user enters in an e-mail address that is their username and kept on in a mySQL database. The queery executes and checks to see if the e-mail adddress is on file. If it is, it grabs the corresponding password and sends it through e-mail. Here is my code:
The error message I keep receiving is the following:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/***/***/confirm.asp, line 21
800401f3
I have researched the error and found that it could be because of some DLL files that are not installed on my web server. Does this seem possible? If so, does anyone know what DLL files I need to install.
Again, any help someone could give is appreciated.
Thanks,
jcrab
Code:
<%
DIM strEmail
strEmail = Request.Form("Email")
IF strEmail <> "" THEN
%>
<!--I use a separate asp file to make my connection to the
database-->
<!--#include virtual="***/***/connection.asp" -->
<%
DIM mySQL, objRS
mySQL = "SELECT * FROM userlist WHERE username = '" &
strEmail & "'"
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open mySQL, objConn
IF objRS.EOF THEN
Response.Write "That email address was not found in our
database. Please click Back on your browser and
enter the email address you registered with."
ELSE
DIM strPassword
strPassword = objRS("passw")
DIM mail, objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Subject = "Your Password"
objMail.From = "me@myemail.com"
objMail.To = strEmail
objMail.Body = "Here is your login password: " & strPassword
objMail.Send
Set objMail = nothing
IF NOT objMail.Execute THEN
'Response.Write ("ERROR MESSAGE: " & objMail.ErrorMessage
& "<BR>" & vbcrlf)
ELSE
Response.Write "Your password has been sent to your email
address on file."
END IF
ELSE
Response.Write "Please click Back on your browser and
enter the email address you registered with."
END IF
%>
The error message I keep receiving is the following:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/***/***/confirm.asp, line 21
800401f3
I have researched the error and found that it could be because of some DLL files that are not installed on my web server. Does this seem possible? If so, does anyone know what DLL files I need to install.
Again, any help someone could give is appreciated.
Thanks,
jcrab

