public void Delete( int messageInboxIndex )
Messages flagged for deletion are actually removed from the server on Disconnect method call. Until this moment, you can remove the deletion status for all messages flagged as deleted by calling Undelete method.
Represents POP3 DELE command.
Shows how to use the Delete method to delete a message.
using ComponentPro.Net; using ComponentPro.Net.Mail; ... // POP3 server information. const string serverName = "myserver"; const string user = "name@domain.com"; const string password = "mytestpassword"; const int port = 995; const SslSecurityMode securityMode = SslSecurityMode.Implicit; // Create a new instance of the Pop3 class. Pop3 client = new Pop3(); // Connect to the server. client.Connect(serverName, port, securityMode); // Login to the server. client.Authenticate(user, password); // Delete a mail message with sequence number 1. client.Delete(1); // Close the connection. client.Disconnect();