%@language = "VBscript"%> <% 'Derek Nejedlo's Edited CDO version for ASPMAILER 'DO NOT REMOVE THIS SECTION OR NOTHING WILL WORK 'Sub SendNoticeEmail(strID,strIpAddress,strEmailAddress) '------------------------------ ' Purpose: Send an email to appropriate personnel if a person has attempted to login too many times '------------------------------ 'Dim sMsg 'Dim sTo 'Dim sFrom 'Dim sSubject 'Dim sTextBody 'sTo = strEmailAddress 'sFrom = strEmailAddress 'sSubject = "Online Password Reset - Excessive Attempts" 'sTextBody = strIpAddress & " " & strID 'Dim objMail 'Create the mail object 'Set objMail = Server.CreateObject("CDO.Message") 'objMail.Configuration.Fields.Item _ '("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'objMail.Configuration.Fields.Item _ '("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "msa.uwgb.edu" 'objMail.Configuration.Fields.Item _ '("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 'Set key properties 'objMail.From = sFrom 'objMail.To = sTo 'objMail.Subject= sSubject 'objMail.TextBody = sTextBody 'Send the email 'objMail.Send 'Clean-up mail object 'Set objMail = Nothing 'End Sub Dim strError Response.Buffer = True If ScriptEngineMajorVersion < 2 Then ReportError "Host system needs scripting engine upgrade to use this script" End If Set objFM = CreateObject("Scripting.Dictionary") If IsObject(objFM) = False Then ReportError "Host system lacks component(s) required by this script" End If Set objMail = Server.CreateObject("CDO.Message") 'If IsObject(objMailx) = False Then 'ReportError "Host system lacks component(s) required by this script" 'End If Set objMailx = Nothing %> <% 'aspmailer.asp by Tom Germain, Copyright 1998-1999 'Version 1.0 'tg@cgiware.com 'Visit http://www.cgiware.com for latest version, documentation, and other resources 'This is freeware - Use at your own risk. No warranties provided. 'Redistribution of this program, in whole or in part, is strictly 'prohibited without the expressed written consent of the author. 'Custom programming available on hourly fee basis. %> <%'variables you can set start here%> <% strRcpt = "cs_www@uwgb.edu" 'Put the address you want the form sent to here strFromVar = "" 'If you want a reply-to email address to be taken from the form ' put the name of the input item here. returntosender = false ' Determines if you are going to return the e-mail back to it's sender, IF return to sender is marked true ' You should have a form field called email, because that is where it will send it!!!! strDefFrom = "cs_www@uwgb.edu" 'Put a default, even fake, From address here strDefSubject = "Form confirmation" 'Put the subject of the letter here. If an input item called 'subject exists in the form, its value will be used instead. strRedirect = "http://www.uwgb.edu" 'Url to redirect to after a successful form submission. If an input item called 'redirect exists in the form, its value will be used instead. %> <%'variables you can set end here%> <% if returntosender then if not strRcpt = "" then strRcpt = strRcpt & ";" end if strRcpt = strRcpt & Request("email") end if ParseForm CheckForm If Len(strError) > 0 Then ReportError strError End If strOutX = SeqForm If Len(strOutX) < 1 Then strOutX = FormToString End If If Len(strOutX) < 1 Then ReportError "Submitted form is empty" End If strSubject = strDefSubject If objFM.Exists("TGsubject") Then strSubject = objFM.Item("TGsubject") End If strFrom = strDefFrom If Len(strFromVar) > 0 Then If objFM.Exists(strFromVar) Then strFrom = objFM.Item(strFromVar) End If End If SendMail strFrom,strRcpt,strSubject,strOutX If Len(strRedirect) > 0 Then Response.redirect(strRedirect) Response.End End If If objFM.Exists("TGredirect") = True Then If Len(objFM.Item("TGredirect")) > 0 Then Response.redirect(objFM.Item("TGredirect")) Response.End End If End If %>
Click on your browser's Back button to correct any mistakes in your input. Make sure you've entered correct material in the required* fields.
<% Credit Response.End End Function %> <%Function Credit%><%End Function%>