Here is the code. Thanks!!!!!!!
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connNCF.asp" -->
<%
Dim rsUser__MMColParam
rsUser__MMColParam = "1"
If (Request.Form("email") <> "") Then
rsUser__MMColParam = Request.Form("email")
End If
%>
<%
Dim rsUser
Dim rsUser_numRows
Set rsUser = Server.CreateObject("ADODB.Recordset")
rsUser.ActiveConnection = MM_connNCF_STRING
rsUser.Source = "SELECT name, email, password FROM users WHERE email = '" + Replace(rsUser__MMColParam, "'", "''") + "'"
rsUser.CursorType = 0
rsUser.CursorLocation = 2
rsUser.LockType = 1
rsUser.Open()
If (rsUser_numRows = "") Then
Response.Redirect("forgot_password_error.asp")
Response.End
End If
rsUser_numRows = 0
%>
<%
Dim mail
Dim emailstr, passwordstr
emailstr = Request("email")
passwordstr = rsUser("password")
set mail=server.CreateObject("CDONTS.NewMail")
mail.From= "ncf@4fellowship.com" ' like my.email.addr@comsoltech.com
mail.To = emailstr ' like john.doe@comsoltech.com
mail.Subject = "New Community Fellowship Password confirmation"
mail.Body = "Dear Sir/Madam," & vbcrlf & vbcrlf & "Here is the login information you needed:" & vbcrlf & vbcrlf & "User email: " & emailstr & vbcrlf & "User Password: " & passwordstr & vbcrlf & vbcrlf & "Please join us again at
May God Bless you." & vbcrlf & vbcrlf & "Sincerely," & vbcrlf & "New Community Fellowship" & vbcrlf & vbcrlf & "------------------------------------" & vbcrlf & "New Community Fellowship" & vbcrlf & "Phone: 301-270-6777" & vbcrlf & "Email: ncf@4fellowship.com" & vbcrlf & "
mail.MailFormat = 1 ' 0 = MIME, 1 = Text
mail.Importance = 1 ' 0 =High, 1 = Medium, 2 = Low
'mail.attachFile ("c:\images\mypicture.gif") ' you can also attach files
mail.Send
set mail=nothing
Response.Redirect("thank_you_forgot_pass.asp")
Response.End
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>New Community Fellowship: Forgot password</title>
</head>
<body>
</body>
</html>
<%
rsUser.Close()
Set rsUser = Nothing
%>