MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual page 802

Developing coldfusion mx applications
Table of Contents

Advertisement

Save the file as header_body.cfm in the myapps directory under your web_root and view it in
3
your web browser:
This example does not use a CFML function to encode the body contents. As a result, the
browser displays the formatted message as you would normally see it in a mail program that
supports HTML messages.
Retrieving a message and its attachments
When you use the
specify the directory in which to store attachments, ColdFusion retrieves any attachment files
from the POP server and saves them in the specified directory. The
following two columns to the query it creates:
attachments
attachmentfiles
the
tag to delete these temporary files.
cffile
You must ensure that the
retrieve attachments. ColdFusion generates an error if it attempts to write an attachment file to a
nonexistent directory.
If a message has no attachments, the
empty strings.
802
Chapter 35: Sending and Receiving E-Mail
tag with
cfpop
action="getAll"
Contains a tab-separated list of all attachment names.
Contains a tab-separated list of the locations of the attachment files. Use
attachmentpath
attachments
, and use the
directory exists before you use the
and
attachmentfiles
attribute to
attachmentpath
tag also adds the
cfpop
tag to
cfpop
columns contain

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents