Home | Contact Us | Download | Support | Purchase | Shopping Cart | Products


Product List
  "I just wanted to pass along how much we TRULY appreciate your responsiveness when it comes to improving your products based on feedback. We have been making use of your components for almost 7 years now and I have yet to deal with a third-party supplier that has been as customer-oriented as you are. I hope that Advanced Intellect does very well, as it certainly deserves to! I always have (and will continue to) highly recommend your components to our partners and clients."
D. Plaskon
Affirmative
 
More
Testimonials

Deleting a Message

The following example demonstrates deleting a message, and then canceling pending deletes.

[C#]

POP3 pop = new POP3("127.0.0.1","dave@blah.com", "mypassword" );

//connect to the POP3 server
pop.Connect();
            
//delete the message
pop.Delete( 1 );
pop.Delete( 2 );

//commit the deletes
pop.CommitDeletes();

//decide you want to delete Message 3
pop.Delete( 3 );

//now change your mind
pop.CancelDeletes();

//Close the POP3 Connection
pop.Disconnect();

//done
Console.WriteLine( "done.");
Console.ReadLine( );



 

[VB.NET]

Dim pop As New POP3("127.0.0.1", "dave@blah.com", "mypassword")

'connect to the POP3 server
pop.Connect()

'delete the message
pop.Delete(1)
pop.Delete(2)

'commit the deletes
pop.CommitDeletes()

'decide you want to delete Message 3
pop.Delete(3)

'now change your mind
pop.CancelDeletes()

'Close the POP3 Connection
pop.Disconnect()

'done
Console.WriteLine("done.")
Console.ReadLine()




 

 



The box is not shipped. aspNetPOP3 is a downloadable product.