home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / cfpop.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  1.2 KB  |  45 lines

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