Hunny Software Library Reference

Imap4Client.AuthenticatePlain Method 

Sends an AUTHENTICATE PLAIN command.

[Visual Basic]
Public Sub AuthenticatePlain( _
   ByVal name As String, _
   ByVal password As String _
)
[C#]
public void AuthenticatePlain(
   string name,
   string password
);

Parameters

name
User name for the authentication.
password
Password for the authentication.

Remarks

AUTHENTICATE is actually the name of the IMAP4 command; PLAIN is the name of a registered SASL authentication mechanism, which is supplied as a parameter to the AUTHENTICATE command. (SASL, described in RFC 2222, means "Simple Authentication and Security Layer".) The PLAIN authentication mechanism is described in RFC 2595.

PLAIN is the least secure of all the SASL authentication mechanisms, since the password is sent unencrypted across the network. The CRAM-MD5 authentication mechanism is much more secure. You can use the AuthenticateCramMd5 method to send the AUTH CRAM-MD5 command.

Note: Not all IMAP4 servers support the PLAIN authentication mechanism. If the server supports PLAIN authentication, it returns AUTH=PLAIN as a capability in its CAPABILITY response. (See Capability and CapabilityResponse)

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | AuthenticateCramMd5 | RFC 2222: Simple Authentication and Security Layer (SASL) | PLAIN SASL mechanism in RFC 2595