Sends an AUTHENTICATE PLAIN command.
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)
| Exception Type | Condition |
|---|---|
| Exception | If a network or protocol error occurs. |
Imap4Client Class | Hunny.Mail Namespace | AuthenticateCramMd5 | RFC 2222: Simple Authentication and Security Layer (SASL) | PLAIN SASL mechanism in RFC 2595