|
Deleting a single message |
|
Upon establishing a connection to the POP server you can mark an individual message for deletion from the mailbox by invoking the DeleteMessage method and passing the one-based message ID as an argument for the message you want to delete.
Example
[C#]
// delete the first message
EmailMessage message = myPop.DeleteMessage(1);
[Visual Basic]
' delete the first message
Dim message As EmailMessage = myPop.DeleteMessage(1)