 | SmtpSendCommandAsync(String, CancellationToken) Method |
Sends command to the SMTP server (e.g. "EHLO").
Namespace: Limilabs.Client.SMTPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<SmtpResponse> SendCommandAsync(
string command,
CancellationToken cancel = default
)
Public Function SendCommandAsync (
command As String,
Optional cancel As CancellationToken = Nothing
) As Task(Of SmtpResponse)
public:
Task<SmtpResponse^>^ SendCommandAsync(
String^ command,
CancellationToken cancel = CancellationToken()
)
member SendCommandAsync :
command : string *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<SmtpResponse> Parameters
- command String
- Command to be send e.g. "EHLO".
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskSmtpResponseServer's response.
Exceptions
Remarks
Most commands have their own specialized methods in this class, you should probably use them instead.
See Also