Help Converting Form Mail From CDONTS to CDOSYS -
04-18-2010
, 05:20 PM
I can use some help here. This is a lost password recovery script that
connects to a MSAccess MDB. Any Help would be greatly appreciated.
Thank you
Jim Rojas
<%
'sets variables
email = request.form("email")
'chooses username and password from database that correspond to
submitted email address.
user = objrs.Fields("login")
pass = objrs.Fields("password")
expires = objrs.Fields("expires")
Set sendmail = Server.CreateObject("CDONTS.Newmail")
sendmail.From = "jrojas (AT) tech-man (DOT) com"
sendmail.To = email
sendmail.Subject = "The login information you requested"
sendmail.Body = "Here is the login information you requested." & vbCrlf
& vbCrlf _
& "UserID: " & user & vbCrlf _
& "Password: " & pass & vbCrlf _
& "Expires: " & expires & vbCrlf _
& " " & vbCrlf _
& "Thank you " & vbCrlf _
& " " & vbCrlf _
& "Jim Rojas " & vbCrlf _
& "Technical Manuals Online! " & vbCrlf _
& "http://www.tech-man.com " & vbCrlf
sendmail.Importance = 2
sendmail.Send
%> |