Sends command which expects to recive multi-line response e.g. "EHLO".
Namespace: Lesnikowski.Client
Assembly: Mail (in Mail.dll)
Version: 2.7.2897.36617
Syntax
| C# |
|---|
public SmtpResponse SendCommand( string command ) |
| Visual Basic (Declaration) |
|---|
Public Function SendCommand ( _ command As String _ ) As SmtpResponse |
| Visual C++ |
|---|
public: SmtpResponse^ SendCommand ( String^ command ) |
Parameters
- command
- String
Command to send e.g. "EHLO".
Return Value
Multi-line response object.
Remarks
Some commands have their own specialized methods in this class,
you should probably use them insted.
This is equal to 'SendMultiLineCommand(command,true);'.
Exceptions
| Exception | Condition |
|---|---|
| Lesnikowski.Client..::ServerException | Throws ServerException on error response. |
See Also
Smtp Class
Lesnikowski.Client Namespace