Click or drag to resize

SmtpLoginOAUTHAsync Method

Logs user in using AUTH XOAUTH command. This method does NOT send the password. You can use OAuth class to create the key.

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

Parameters

key
Type: SystemString
XOAuth key. You can use GetXOAuthKey method to create this key.

Return Value

Type: Task
A task that represents the asynchronous login operation.
Exceptions
ExceptionCondition
SmtpResponseExceptionThrows SmtpResponseException on error response.
See Also