Sends command which expects to receive multi-line response e.g. "EHLO".
Namespace: Lesnikowski.ClientAssembly: Mail (in Mail.dll) Version: 3.0.1213.909
Syntax
| C# |
|---|
public SmtpResponse SendCommand( string command ) |
| Visual Basic |
|---|
Public Function SendCommand ( _ command As String _ ) As SmtpResponse |
| Visual C++ |
|---|
public: SmtpResponse^ SendCommand( String^ command ) |
Parameters
- command
- Type: System..::..String
Command to send e.g. "EHLO".
Return Value
Server's response.
Remarks
Most commands have their own specialized methods in this class, you should probably use them instead.
This is equal to 'SendMultiLineCommand(command,true);'.
Exceptions
| Exception | Condition |
|---|---|
| Lesnikowski.Client..::..ServerException | Throws ServerException on error response. |