Issues a command to IMAP server and reads response.
Namespace: Jscape.EmailAssembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0
Syntax
C# |
---|
public string IssueCommand( string command ) |
Visual Basic |
---|
Public Function IssueCommand ( _ command As String _ ) As String |
Visual C++ |
---|
public: String^ IssueCommand( String^ command ) |
Parameters
- command
- Type: System..::..String
The command to issue.
Return Value
The multiple-line IMAP server response.
Remarks
The command is automatically prefixed with a command identifier and a
CRLF suffix is added.
The response is checked whether NO or BAD is received indicating the command did not successfully complete.
The response is checked whether NO or BAD is received indicating the command did not successfully complete.
Examples
This example issues the LOGIN command and reads the response.
The LOGIN command requires the the username and password as parameters.
CopyImap IssueCommand
CopyImap IssueCommand

String response = myImap.IssueCommand("LOGIN username password");

Dim response As String = myImap.IssueCommand("LOGIN username password")