<% '################################################################################# '## Copyright (C) 2000-01 Michael Anderson and Pierre Gorissen '## '## This program is free software; you can redistribute it and/or '## modify it under the terms of the GNU General Public License '## as published by the Free Software Foundation; either version 2 '## of the License, or any later version. '## '## All copyright notices regarding Snitz Forums 2000 '## must remain intact in the scripts and in the outputted HTML '## The "powered by" text/logo with a link back to '## http://forum.snitz.com in the footer of the pages MUST '## remain visible when the pages are viewed on the internet or intranet. '## '## This program is distributed in the hope that it will be useful, '## but WITHOUT ANY WARRANTY; without even the implied warranty of '## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the '## GNU General Public License for more details. '## '## You should have received a copy of the GNU General Public License '## along with this program; if not, write to the Free Software '## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. '## '## Support can be obtained from support forums at: '## http://forum.snitz.com '## '## Correspondence and Marketing Questions can be sent to: '## reinhold@bigfoot.com '## '## or '## '## Snitz Communications '## C/O: Michael Anderson '## PO Box 200 '## Harpswell, ME 04079 '################################################################################# %> <% if Request.QueryString("mode") = "DoIt" then Err_Msg = "" if (Request.Form("Name") = "") then Err_Msg = Err_Msg & "
  • You must enter your UserName
  • " end if if (Request.Form("Email") = "") then Err_Msg = Err_Msg & "
  • You Must give your email address
  • " end if if (EmailField(Request.Form("Email")) = 0) then Err_Msg = Err_Msg & "
  • You Must enter a valid email address
  • " end if '## Emails Password to Requestor if Authenticated Properly. '## This needs to be Edited to use your own email component '## if you don't have one, try the w3Jmail component from www.dimac.net it's free! if lcase(strEmail) = "1" then if (Err_Msg = "") then '## Forum_SQL strSql = "SELECT M_NAME, M_PASSWORD, M_EMAIL " strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS " strSql = strSql & " WHERE M_NAME = '" & Request.Form("Name") & "' AND " strSql = strSql & " M_EMAIL = '" & Request.Form("email") & "'" set rs = my_Conn.Execute (strSql) strRecipientsName = Request.Form("Name") strRecipients = request.form("email") strSubject = strForumTitle & " " & "Password" strMessage = "You have received this mail because you (or someone else) have asked to be reminded of your Password for " & strForumTitle & " at " & strForumURL & vbNewline & vbNewline if rs.EOF or rs.BOF then strMessage = strMessage & "Sorry. The details you supplied were wrong or unknown." & vbNewline & vbNewline strMessage = strMessage & "Please register again at " & strForumURL & "/register.asp?mode=Register" & vbNewline Else strMessage = strMessage & " Your Password: " & rs("M_PASSWORD") & vbNewline end if strMessage = strMessage & "Thank you for using " & strForumTitle %> <% rs.close set rs = nothing ' Response.Write vbNewline & "
    Sender: " & strSender & vbNewline & "
    Recipients: " & strRecipients & vbNewline & "
    Subject: " & strSubject & vbNewline & "
    Message: " & strMessage & vbNewline & "
    " Response.Write "

    Password Reminder Sent

    " & vbNewline Response.Write "

    You should receive an email soon.

    " & vbNewline else %>

    There Was A Problem With Your Email

      <% =Err_Msg %>

    Go Back To Enter Data

    Close Window

    <% Response.End end if end if Else %>

    Password Reminder Request

    align=right nowrap>>User Name: >
    align=right nowrap>>Email: >
    align=middle colSpan=2>
    <% end if %>