Issues a command to POP server and optionally reads response.

Namespace: Jscape.Email
Assembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0

Syntax

C#
public string IssueCommand(
	string command,
	bool readResponse
)
Visual Basic
Public Function IssueCommand ( _
	command As String, _
	readResponse As Boolean _
) As String
Visual C++
public:
String^ IssueCommand(
	String^ command, 
	bool readResponse
)

Parameters

command
Type: System..::..String
The command to issue.
readResponse
Type: System..::..Boolean
The flag to indicate whether to read the response.

Return Value

The POP3 server response.

Examples

This example reads the response of the STAT command.
CopyPop IssueCommand
String response = myPop.IssueCommand("STAT", true);

CopyPop IssueCommand
Dim response As String = myPop.IssueCommand("STAT", True)

See Also