Pop3Disconnect Method
Disconnects from the POP3 server and releases any used resources.

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public bool Disconnect()

Return Value

Type: Boolean
true if the method succeeds; otherwise, false.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks
On successful completion of this method, all the messages marked as deleted during the POP3 session are physically deleted by the server. If this method fails, the connection is still closed and all network resources are freed, but it's undefined whether the messages marked for deletion were really deleted or not.
Examples
This sample deletes the first message in the inbox.
// To use the code below, import MailBee namespaces at the top of your code
using MailBee;
using MailBee.Pop3Mail;

// The actual code (put it into a method of your class)
Pop3 pop = new Pop3();
pop.Connect("mail.domain.com");
pop.Login("jdoe", "secret");
pop.DeleteMessage(1);
pop.Disconnect();
See Also