Notice: With the launch of Adobe Cookbooks, this site will no longer be accepting new entries or posting new content. Thanks to everyone who submitted content!

How can I delete email messages from a mail server?

Use <cfpop> with the action attribute set to 'delete' and the messagenumber attribute or uuid attribute set to the message you wish to delete.

<cfpop
action="delete"
server="SERVER_NAME"
username="USERNAME"
password="PASSWORD"
messagenumber="MESSAGENUMBER"

This entry was based on a suggestion by Stefan Leroux


This question was written by Jeremy Petersen.
It was last updated on July 17, 2008 at 10:05:06 AM EDT.

CFML Referenced

<cfpop>

Categories

Email

Comments

There are no comments for this entry.