Save the file as header_body_att.cfm in the myapps directory under your web_root and view it
3
in your web browser:
Note: To avoid duplicate filenames when saving attachments, set the
attribute of
cfpop
Deleting messages
By default, retrieved messages remain on the POP mail server. If you want to delete retrieved
messages, you must set the
the
messagenumber
Using
to delete a message permanently removes it from the server. If the
cfpop
does not correspond to a message on the server, ColdFusion generates an error.
Note: Message numbers are reassigned at the end of every POP mail server communication that
contains a delete action. For example, if you retrieve four messages from a POP mail server, the
server returns the message numbers 1,2,3,4. If you delete messages 1 and 2 with a single
messages 3 and 4 are assigned message numbers 1 and 2, respectively.
To delete messages:
Create a ColdFusion page with the following content:
1
<html>
<head>
<title>POP Mail Message Delete Example</title>
</head>
<body>
<h2>This example deletes messages:</h2>
<cfpop server="mail.company.com"
username=#username#
password=#password#
action="Delete"
804
Chapter 35: Sending and Receiving E-Mail
to Yes.
attribute of the
action
attribute to specify the numbers of the messages to delete.
generateUniqueFilenames
tag to Delete. You must also specify use
cfpop
messagenumber
tag,
cfpop
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