Click or drag to resize

SmtpConnectAsync Method (String)

Connects to SMTP server on port 587. Use ConnectSSL(String) when SSL/TLS connection is needed.

Namespace:  Limilabs.Client.SMTP
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
public Task ConnectAsync(
	string host
)

Parameters

host
Type: SystemString
Host name or IP address.

Return Value

Type: Task
A task that represents the asynchronous connect operation.
Exceptions
ExceptionCondition
ServerExceptionDNS resolving error, connection error.
SmtpResponseExceptionInitial error response.
See Also