 | SmtpLoginOAUTH2Async Method |
Logs user in using AUTH XOAUTH2 command. This method does NOT send the password.
You can use
DotNetOpenAuth to create the key.
You can check which authentication methods remote server supports using
SupportedAuthenticationMethods method.
Namespace: Limilabs.Client.SMTPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task LoginOAUTH2Async(
string user,
string accessToken,
CancellationToken cancel = default
)
Public Function LoginOAUTH2Async (
user As String,
accessToken As String,
Optional cancel As CancellationToken = Nothing
) As Task
public:
Task^ LoginOAUTH2Async(
String^ user,
String^ accessToken,
CancellationToken cancel = CancellationToken()
)
member LoginOAUTH2Async :
user : string *
accessToken : string *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task Parameters
- user String
- User's login (email address).
- accessToken String
- OAuth 2.0 access token.
- 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 login operation.
Exceptions
See Also