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.

Categories

Email

Comments

comments powered by Disqus