<!--- This view-only example shows the use of CFPOP --->
<HTML>
<HEAD>
<TITLE>CFPOP Example</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">

<H3>CFPOP Example</H3>
<P>CFPOP allows you to retrieve and manipulate mail 
in a POP3 mailbox.  This view-only example shows how to 
create one feature of a mail client, allowing you to display
the mail headers in a POP3 mailbox.

<P>Simply uncomment this code and run with a mail-enabled CF Server to see this feature in 
action.</P>
<!--- 
<CFIF IsDefined("form.server")>
<!--- make sure server, username are not empty --->
<CFIF form.server is not "" and form.username is not "">
     <CFPOP SERVER="#server#" USERNAME=#UserName# PASSWORD=#pwd#
     ACTION="GETHEADERONLY" NAME="GetHeaders">
     
     <H3>Message Headers in Your Inbox</H3>
     <UL>
     <CFOUTPUT QUERY="GetHeaders">
     <LI>From: #From# -- Subject: #Subject#
     </CFOUTPUT>
     </UL>
</CFIF>
</CFIF>

<FORM ACTION="cfpop.cfm" METHOD="POST">
<P>Enter your mail server:
<P><INPUT TYPE="Text" NAME="server">
<P>Enter your username:
<P><INPUT TYPE="Text" NAME="username">
<P>Enter your password:
<P><INPUT TYPE="password" NAME="pwd">
<INPUT TYPE="Submit" NAME="get message headers">
</FORM> 
--->

</BODY>
</HTML>       
