User Guide

Handling POP Mail 315
To delete messages:
1 Create a new file in ColdFusion Studio.
2 Modify the file so that it appears as follows:
<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>
3 Change the following line so that it refers to a valid POP mail server, as well as to a
valid user name and password:
<cfpop server="mail.company.com"
username=#username#
password=#password#
4 Save the file as hdrbody.cfm in myapps under the Web root directory.
Caution
When you view this page in your browser or the ColdFusion Studio Browse tab, it
immediately deletes the messages from your POP server.