Authenticates the user to the SMTP server using the specified authentication method.
Namespace:
Rebex.Net
Assembly:
Rebex.Smtp (in Rebex.Smtp.dll)
Syntax
Visual Basic |
---|
Public Sub Login ( _ userName As String, _ password As String, _ method As SmtpAuthentication _ ) |
C# |
---|
public void Login( string userName, string password, SmtpAuthentication method ) |
Parameters
- userName
- Type: System..::..String
User name.
- password
- Type: System..::..String
Password.
- method
- Type: Rebex.Net..::..SmtpAuthentication
Authentication method.