The Cfpop Query Variables; Handling Pop Mail - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

Decide whether you must delete messages from the POP server after you retrieve them.
4
Incorporate the
5
Build an application page to handle the output. Retrieved messages can include ASCII
6
characters that do not display properly in the browser.
You use the
cfoutput
output to the browser. These functions convert characters with special meanings in HTML, such
as the less than (<), greater than (>), and ampersand (&) symbols, into HTML-escaped
characters, such as &lt;, &gt;, and &amp;. The
tag block. The examples in this chapter use these functions.
pre

The cfpop query variables

Like any ColdFusion query, each
information:
RecordCount
CurrentRow
query-driven loop.
You can reference these properties in a
query name in the
<cfoutput>
This operation returned #Sample.RecordCount# messages.
</cfoutput>

Handling POP mail

This section provides an example of each of the following uses of POP mail:
Retrieving only message headers
Retrieving a message
Retrieving a message and its attachments
Deleting messages
Retrieving only message headers
You can retrieve only the headers of your messages by using the
attribute of the
action
message, ColdFusion returns a query object that contains one row for each message in the
specified mailbox. The query object, whose name is specified in the
tag, consists of the following fields:
date
from
messageNumber
replyTo
subject
cc
to
798
Chapter 35: Sending and Receiving E-Mail
tag in your application and create a user interface for accessing a mailbox.
cfpop
tag with the
HTMLCodeFormat
cfpop
The total number of records returned by the query.
The current row of the query being processed by
cfoutput
attribute of
name
cfpop
tag. Whether you use
cfpop
and
HTMLEditFormat
HTMLCodeFormat
query returns two variables that provide record number
tag by prefixing the query variable with the
:
to retrieve the header or the entire
cfpop
functions to control
tag also surrounds the text in a
or
cfoutput
cfloop
value for the
GetHeaderOnly
attribute of the
name
in a
cfpop

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents