Authenticates the user to the SMTP server using an OAuth token.
Namespace:
Rebex.Net
Assembly:
Rebex.Smtp (in Rebex.Smtp.dll)
Syntax
| Visual Basic |
|---|
Public Sub Login ( _ token As String, _ method As SmtpAuthentication _ ) |
| C# |
|---|
public void Login( string token, SmtpAuthentication method ) |
Parameters
- token
- Type: System..::..String
Authentication token.
- method
- Type: Rebex.Net..::..SmtpAuthentication
Authentication method (only OAuth 2.0 is supported at the moment).