Logs user in using LOGIN command. When LOGIN command is disabled by including the LOGINDISABLED capability this method tries to log-in using UseBestLogin(String, String). Unless SSL connection is used this method sends the password in clear text. You can check which methods remote server supports using SupportedAuthenticationMethods()()()() method.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.12102.1426

Syntax

C#
public void Login(
	string user,
	string password
)
Visual Basic
Public Sub Login ( _
	user As String, _
	password As String _
)
Visual C++
public:
void Login(
	String^ user, 
	String^ password
)

Parameters

user
Type: System..::..String
User's login.
password
Type: System..::..String
User's password.

Exceptions

ExceptionCondition
Limilabs.Client..::..ServerExceptionThrows ServerException on negative response.

See Also