User Guide

Chapter 13: Sending and Receiving Email 217
returned will be 1,2,3,4. If messages 1 and 2 are then deleted within a
single CFPOP tag, messages 3 and 4 will be assigned message numbers 1
and 2, respectively.
To delete messages:
1. Create a new file in 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 a
valid user name and password:
<CFPOP SERVER="mail.company.com"
USERNAME=#username#
PASSWORD=#password#
4. Save the file as msgdel.cfm in myapps under the Web root directory.