 | SmtpConnectAsync(String, CancellationToken) Method |
Connects to SMTP server on port 587. Use
ConnectSSL(String) when SSL/TLS connection is needed.
Namespace: Limilabs.Client.SMTPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task ConnectAsync(
string host,
CancellationToken cancel = default
)
Public Function ConnectAsync (
host As String,
Optional cancel As CancellationToken = Nothing
) As Task
public:
Task^ ConnectAsync(
String^ host,
CancellationToken cancel = CancellationToken()
)
member ConnectAsync :
host : string *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task Parameters
- host String
- Host name or IP address.
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskA task that represents the asynchronous connect operation.
Exceptions
See Also