the Post Office Protocol tag, cfpop, expands your ability to add Internet mail client features and e-mail consolidation to applications. While a conventional mail client provides an adequate interface for personal mail, there are many cases in which an alternative interface to some mailboxes is desirable. cfpop is a tool to develop targeted mail clients to suit the specific needs of a wide range of applications.
Use cfpop in applications when you want to receive e-mail. Here are two instances in which implementing POP mail makes sense:
For more information on cfpop syntax and variables, see the CFML Reference.
Use the followig steps to add POP mail to your application
cfpop tag in your application and create a user interface for accessing a mailbox.You use the cfoutput tag with the HTMLCodeFormat and HTMLEditFormat functions to control output to the browser. These functions convert characters with special meanings in HTML, such as <, >, and &, into HTML escaped characters, such as <, >, and &. The HTMLCodeFormat tag also surrounds the text in a pre tag block. Note the use of these functions in the examples in this chapter.
Two variables are returned for each cfpop query that provide record number information:
RecordCount The total number of records returned by the query.
CurrentRow The current row of the query being processed by cfoutput in a query-driven loop.
You can reference these properties in a cfoutput tag by prefixing the query variable with the query name in the name attribute of cfpop:
<cfoutput> This operation returned #Sample.RecordCount# messages. </cfoutput>
LiveDocs comments are not longer enabled for ColdFusion 5.0. Please use one of the following resources instead.
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 5.0