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, bool throwException ) |
| Visual Basic (Declaration) |
|---|
Public Function SendCommand ( _ command As String, _ throwException As Boolean _ ) As SmtpResponse |
| Visual C++ |
|---|
public: SmtpResponse^ SendCommand ( String^ command, bool throwException ) |
Parameters
- command
- String
Command to send e.g. "EHLO".
- throwException
- Boolean
If true throws ServerException on error response
Return Value
Multi-line response object.
Remarks
Some commands have their own specialized methods in this class,
you should probably use them insted.
Exceptions
| Exception | Condition |
|---|---|
| Lesnikowski.Client..::ServerException | Throws ServerException on error response (if 'throwException' param is set to true). |
See Also
Smtp Class
Lesnikowski.Client Namespace