| SmtpSendCommandAsync Method (String, Boolean) |
Sends command to the SMTP server (e.g. "EHLO").
Namespace:
Limilabs.Client.SMTP
Assembly:
Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax public Task<SmtpResponse> SendCommandAsync(
string command,
bool throwException
)
Public Function SendCommandAsync (
command As String,
throwException As Boolean
) As Task(Of SmtpResponse)
public:
Task<SmtpResponse^>^ SendCommandAsync(
String^ command,
bool throwException
)
member SendCommandAsync :
command : string *
throwException : bool -> Task<SmtpResponse>
Parameters
- command
- Type: SystemString
Command to be send e.g. "EHLO". - throwException
- Type: SystemBoolean
If true throws SmtpResponseException on error response.
Return Value
Type:
TaskSmtpResponseServer's response.
Remarks
Most commands have their own specialized methods in this class, you should probably use them instead.
See Also