Pop3.GetMessage Method
Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9083)
GetMessage(Int32, Stream)
Downloads the message with a specified number from the server and writes its data into a supplied stream.
Declaration
public long GetMessage(int sequenceNumber, Stream output)
Parameters
Type | Name | Description |
---|---|---|
Int32 | sequenceNumber | The sequence number of the message to download. |
Stream | output | Stream that will receive the message. |
Returns
Type | Description |
---|---|
Int64 | The length of the message in bytes. |
Remarks
Represents POP3 RETR command.
GetMessage(Int32, String)
Downloads the message with a specified number from the server and writes its data into a local file.
Declaration
public long GetMessage(int sequenceNumber, string fileName)
Parameters
Type | Name | Description |
---|---|---|
Int32 | sequenceNumber | The sequence number of the message to download. |
String | fileName | The path of the local file. This cannot be a directory. |
Returns
Type | Description |
---|---|
Int64 | The length of the message in bytes. |
Remarks
Represents POP3 RETR command.