Sends command which expects to receive single-line response e.g. "STAT".

Namespace: Lesnikowski.Client
Assembly: Mail (in Mail.dll) Version: 3.0.1213.909

Syntax

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

Parameters

command
Type: System..::..String
Command e.g. "STAT".
throwException
Type: System..::..Boolean
If true throws ServerException on -ERR response

Return Value

Single-line response object.

Remarks

Some commands have their own specialized methods in this class, you should probably use them instead.

Exceptions

ExceptionCondition
Lesnikowski.Client..::..ServerException Throws ServerException on -ERR response (if 'throwException' is set to true).

See Also