Disconnects from the POP3 server and releases any used resources.
Namespace: MailBee.Pop3MailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax Public Function Disconnect As Boolean
Return Value
Type:
Booleantrue if the method succeeds; otherwise,
false.
Exceptions 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.
using MailBee;
using MailBee.Pop3Mail;
Pop3 pop = new Pop3();
pop.Connect("mail.domain.com");
pop.Login("jdoe", "secret");
pop.DeleteMessage(1);
pop.Disconnect();
Imports MailBee
Imports MailBee.Pop3Mail
Dim pop As New Pop3
pop.Connect("mail.domain.com")
pop.Login("jdoe", "secret")
pop.DeleteMessage(1)
pop.Disconnect()
See Also