home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / cfpop.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  1.3 KB  |  47 lines

  1. <!--- This view-only example shows the use of CFPOP --->
  2. <HTML>
  3. <HEAD>
  4. <TITLE>CFPOP Example</TITLE>
  5. </HEAD>
  6.  
  7. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  8. <BODY  bgcolor="#FFFFD5">
  9.  
  10. <H3>CFPOP Example</H3>
  11. <P>CFPOP allows you to retrieve and manipulate mail 
  12. in a POP3 mailbox.  This view-only example shows how to 
  13. create one feature of a mail client, allowing you to display
  14. the mail headers in a POP3 mailbox.
  15.  
  16. <P>Simply uncomment this code and run with a mail-enabled CF Server to see this feature in 
  17. action.</P>
  18. <!--- 
  19. <CFIF IsDefined("form.server")>
  20. <!--- make sure server, username are not empty --->
  21. <CFIF form.server is not "" and form.username is not "">
  22.      <CFPOP SERVER="#server#" USERNAME=#UserName# PASSWORD=#pwd#
  23.      ACTION="GETHEADERONLY" NAME="GetHeaders">
  24.      
  25.      <H3>Message Headers in Your Inbox</H3>
  26.      <UL>
  27.      <CFOUTPUT QUERY="GetHeaders">
  28.      <LI>From: #From# -- Subject: #Subject#
  29.      </CFOUTPUT>
  30.      </UL>
  31. </CFIF>
  32. </CFIF>
  33.  
  34. <FORM ACTION="cfpop.cfm" METHOD="POST">
  35. <P>Enter your mail server:
  36. <P><INPUT TYPE="Text" NAME="server">
  37. <P>Enter your username:
  38. <P><INPUT TYPE="Text" NAME="username">
  39. <P>Enter your password:
  40. <P><INPUT TYPE="password" NAME="pwd">
  41. <INPUT TYPE="Submit" NAME="get message headers">
  42. </FORM> 
  43. --->
  44.  
  45. </BODY>
  46. </HTML>       
  47.