Syntax

C#
public class Pop3
Visual Basic (Declaration)
Public Class Pop3
Visual C++
public ref class Pop3

The type exposes the following members.

Public Constructors

  NameDescription
Public methodPop3Pop3New
Creates new Pop3 client object. Sets ReceiveTimeout to 5 sec.

Public Methods

  NameDescription
Public methodAPOPLogin
Logs _user in using APOP command. Uses _user()() and _password()() properties. This method does NOT send the _password in clear text.
Public methodBeginConnectOverloaded.
Public methodCloseOverloaded.
Public methodConnectOverloaded.
Public methodConnectSSL
Connects to POP3 server using SSL port 995.
Public methodDeleteMessage
Marks specified message for deletion. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state - succesful QUIT command.
Public methodEndConnect
Asynchronously accepts an incoming connection attempt.
(Inherited from TcpClient.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetAccountStat
Gets stat information from server. Fills MessageCount and MailboxSize property.
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetMessage
Gets specified mail message form server. Use SimpleMailMessageBuilder to create ISimpleMailMessage object.
Public methodGetMessageHeader
Gets specified mail message containing only headers. Use SimpleMailMessageBuilder to create ISimpleMailMessage object.
Public methodGetStream
Gets SslStream or NetworkStream for current connection.
(Inherited from TcpTextClient.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodListSizeOverloaded.
Public methodListUniqueIDOverloaded.
Public methodLogin
Logs _user in using _user, PASS commands. Uses _user()() and _password()() properties. This method sends the _password in clear text.
Public methodReceiveLine
Reads data from server until gets "\r\n" string.
(Inherited from TcpTextClient.)
Public methodSend
Sends the text command to server. Adds "\r\n" to the command.
(Inherited from TcpTextClient.)
Public methodSendCommandOverloaded.
Public methodSendMultiLineCommandOverloaded.
Public methodSTLS
Sends 'STLS' command and initializes SSL connection.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Protected Methods

  NameDescription
Protected methodCloseCommand
Sends the Quit command. And gets server response.
(Overrides TcpTextClient..::CloseCommand()().)
Protected methodCreateSSLStream
Creates SSL stream. and authenticates client.
(Inherited from TcpTextClient.)
Protected methodDispose
Releases the unmanaged resources used by the TcpClient and optionally releases the managed resources.
(Inherited from TcpClient.)
Protected methodFinalize
Frees resources used by the TcpClient class.
(Inherited from TcpClient.)
Protected methodGetServerGreeting
Receives server's greeting. Gets the timestamp.
(Overrides TcpTextClient..::GetServerGreeting()().)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnReceiveProgress
Raises the ReceiveProgress event.
Protected methodSetStreams
Creates new Reader and Writer objects. With specified encoding. Reader: Default Encoding; Writer: ASCII Encoding.
(Overrides TcpTextClient..::SetStreams()().)

Public Fields

  NameDescription
Public fieldReader
StreamReader used for reading from network stream or SSL stream.
(Inherited from TcpTextClient.)
Public fieldWriter
StringWriter used for writing to network stream or SSL stream.
(Inherited from TcpTextClient.)

Public Properties

  NameDescription
Public propertyAvailable
Gets the amount of data that has been received from the network and is available to be read.
(Inherited from TcpClient.)
Public propertyClient
Gets or sets the underlying Socket.
(Inherited from TcpClient.)
Public propertyConnected
Gets a value indicating whether the underlying Socket for a TcpClient is connected to a remote host.
(Inherited from TcpClient.)
Public propertyExclusiveAddressUse
Gets or sets a Boolean value that specifies whether the TcpClient allows only one client to use a port.
(Inherited from TcpClient.)
Public propertyHasTimeStamp
True if there was a timestamp in server's greeting (usually it means that APOP command is supported, but not always). Filled by Connect method.
Public propertyLingerState
Gets or sets information about the sockets linger time.
(Inherited from TcpClient.)
Public propertyMailboxSize
Size of the mail massages on server in octets. Filled by GetAccountStat()().
Public propertyMessageCount
Number of messages on server. Filled by GetAccountStat()().
Public propertyNoDelay
Gets or sets a value that disables a delay when send or receive buffers are not full.
(Inherited from TcpClient.)
Public propertyPassword
User's password.
Public propertyProgressThreshold
Says how often ReceiveProgress event will be raised. In bytes.
Public propertyReceiveBufferSize
Gets or sets the size of the receive buffer.
(Inherited from TcpClient.)
Public propertyReceiveTimeout
Gets or sets the amount of time a TcpClient will wait to receive data once a read operation is initiated.
(Inherited from TcpClient.)
Public propertySendBufferSize
Gets or sets the size of the send buffer.
(Inherited from TcpClient.)
Public propertySendTimeout
Gets or sets the amount of time a TcpClient will wait for a send operation to complete successfully.
(Inherited from TcpClient.)
Public propertySSLStream
Returns used SslStream or null if SSL is not enbled.
(Inherited from TcpTextClient.)
Public propertyUser
Username.

Protected Properties

  NameDescription
Protected propertyActive
Gets or set a value that indicates whether a connection has been made.
(Inherited from TcpClient.)

Public Events

  NameDescription
Public eventReceiveProgress
Event fired by ReciveMultiLine method. You can obtain how many bytes where already recieved.
Public eventServerCertificateValidate
Event which is called for custom server validation.
(Inherited from TcpTextClient.)

See Also