Error Logging And Undelivered Messages; Receiving E-Mail Messages; Using Cfpop - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

Error logging and undelivered messages

ColdFusion logs all errors that occur during SMTP message processing to the file
the ColdFusion log directory. The log entries contain the date and time of the error as well as
diagnostic information about why the error occurred.
If a message is not delivered because of an error, ColdFusion writes it to this directory:
In Windows: \CFusionMX\Mail\UnDelivr
On UNIX: /opt/coldfusionmx/mail/undelivr
The error log entry that corresponds to the undelivered message contains the name of the file
written to the UnDelivr (or undelivr) directory.
For more information about the mail logging settings in the ColdFusion MX Administrator, see
Configuring and Administering ColdFusion MX.

Receiving e-mail messages

You create ColdFusion pages to access a Post Office Protocol (POP) server to retrieve e-mail
message information. ColdFusion can then display the messages (or just header information),
write information to a database, or perform other actions.
The
tag lets you add Internet mail client features and e-mail consolidation to applications.
cfpop
Although a conventional mail client provides an adequate interface for personal mail, there are
many cases in which an alternative interface to some mailboxes is advantageous. You use
develop targeted mail clients to suit the specific needs of a wide range of applications. The
tag does not work with the other major e-mail protocol, Internet Mail Access Protocol (IMAP).
Here are three instances in which implementing POP mail makes sense:
If your site has generic mailboxes that are read by more than one person
(sales@yourcompany.com), it can be more efficient to construct a ColdFusion mail front end to
supplement individual user mail clients.
In many applications, you can automate mail processing when the mail is formatted to serve a
particular purpose; for example, when subscribing to a list server.
If you want to save e-mail messages to a database.
Using
on your POP server is like running a query on your mailbox contents. You set its
cfpop
attribute to retrieve either headers (using the
action
(using the
GetAll
that
returns, for example, when using
cfpop
define the
server
For more information on

Using cfpop

Use the following steps to add POP mail to your application.
To implement the cfpop tag in your application:
Choose the mailboxes to access within your ColdFusion application.
1
Determine which mail message components you must process: message header, message body,
2
attachments, and so on.
Decide whether you must store the retrieved messages in a database.
3
value) and assign it a
,
, and
username
password
syntax and variables, see CFML Reference.
cfpop
GetHeaderOnly
value. You use the name to refer to the record set
name
. To access a POP server, you also must
cfoutput
attributes.
mail.log
value) or entire messages

Receiving e-mail messages

in
to
cfpop
cfpop
797

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents