Authenticates the user to the IMAP server using the specified authentication method.

Namespace:  Rebex.Net
Assembly:  Rebex.Imap (in Rebex.Imap.dll)

Syntax

Visual Basic
Public Sub Login ( _
	userName As String, _
	password As String _
)
C#
public void Login(
	string userName,
	string password
)

Parameters

userName
Type: System..::..String
User name.
password
Type: System..::..String
Password.

Remarks

This method tries to authenticate using the following methods, in this order of preference: CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, ClearText, EXTERNAL, GSSAPI, NTLM. The NTLM, GSSAPI and EXTERNAL methods are only attempted if no other method is available - please use Login(String, String, ImapAuthentication) and specify NTLM, GSSAPI or EXTERNAL directly if you wish to use them.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also