User Guide

Table Of Contents
990 Chapter 39: Sending and Receiving E-Mail
To delete messages:
1.
Create a ColdFusion page with the following content:
<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"
messagenumber="1,2,3">
</body>
</html>
2.
Edit the following lines so that they refer to valid values for your POP mail server, username,
and password:
<cfpop server="mail.company.com"
username=#username#
password=#password#
3.
Save the file as message_delete.cfm in the myapps directory under your web_root and view the
file in your web browser.
4.
Run the header_only.cfm page that you created to confirm that the messages have been deleted.
Caution: When you view this page in your web browser, ColdFusion immediately deletes the
messages from the POP server.