home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.americansys.com
/
2014.06.ftp.americansys.com.tar
/
ftp.americansys.com
/
spamcrusherenterprise.exe
/
web
/
queryaccounts.asp
< prev
next >
Wrap
Text File
|
2004-05-28
|
2KB
|
67 lines
<html>
<head>
<title>Spam Crusher - My Profile - Query Accounts</title>
<meta http-equiv="Content-Language" content="en-us">
<meta content="Microsoft FrontPage 5.0" name="GENERATOR">
<meta content="FrontPage.Editor.Document" name="ProgId">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
<P>
<!--#include FILE="header.asp"--></P>
<!--#include FILE="timeout.asp"-->
<P align="center">
<%
EOLN = chr(13) + chr(10)
ErrorStr = ""
Set SpamCrusher = Server.CreateObject("SpamCrusherEnterprise.SpamCrusherEnte.1")
SpamCrusher.SetCurrentUser(Session("UserId"))
MailServerName = SpamCrusher.GetSettingValue("MailServerName")
if (Request.QueryString("Retry")=1) then
ErrorStr = SpamCrusher.QueryServerForMailboxes(Request.Form("eServerName"), Request.Form("eUserId"), Request.Form("ePwd"))
if (ErrorStr = "") then
Response.Redirect("accounts.asp")
Else
Session("ErrorStr") = ErrorStr
Response.Redirect("queryaccounts.asp")
End If
End If
SpamCrusher.Logoff()
if (Session("ErrorStr")<>"") then
Response.Write("<p align=center><font color=#FF0000><b>"+Session("ErrorStr")+"</b></font></p>")
End If
%>
</P>
You can query a server for its list of User Names and email accounts. Spam Crusher Enterprise will run an LDAP query. If your server requires a login to run a query, provide your User Name and Password here.
<FORM name="oForm" action="queryaccounts.asp?Retry=1" method="post">
<P>
<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="1">
<TR>
<TD width="157">Server Name (required)</TD>
<TD><INPUT id="Text1" type="text" name="eServerName" value=<%Response.Write(MailServerName)%>></TD>
</TR>
<TR>
<TD width="157">User Id (optional)</TD>
<TD><INPUT id="Text2" type="text" name="eUserId"></TD>
</TR>
<TR>
<TD width="157">Password (optional)</TD>
<TD><INPUT id="Password1" type="password" name="ePwd"></TD>
</TR>
</TABLE>
</P>
<P> <INPUT type="submit" value="Query Server"> <INPUT id="Reset1" type="reset" value="Reset" name="Reset1"></P>
</FORM>
</body>
</html>