Hunny Software Library Reference

Pop3Client.Retr Method 

Sends the RETR command.

[Visual Basic]
Public Sub Retr( _
   ByVal msgNum As Integer, _
   ByVal lines As LineSink _
)
[C#]
public void Retr(
   int msgNum,
   LineSink lines
);

Parameters

msgNum
The message sequence number of a message in the POP3 mailbox.
lines
A delegate for a method that the library calls for each line of the message.

Remarks

The RETR command requests that the server send a complete message. The argument of the RETR command is a message sequence number that specifies a message in the POP3 mailbox.

The server's response is a multiple line reply. To get the message, you must have a method that the library calls for each line of the message. You provide this method as a delegate in the lines parameter. Each line of the response contains a line of the message.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Pop3Client Class | Hunny.Mail Namespace | POP3 RETR command