Send the AUTH CRAM-MD5 command.
The AUTH CRAM-MD5 command authenticates a user to the POP3 server.
The AUTH CRAM-MD5 command is similar to the APOP command, in that it does not send the password in clear text over the network. AUTH CRAM-MD5, however, is one of a standard set of authentication protocols defined by SASL, and it is used in other protocols such as IMAP4 and ESMTP.
The server's response to the AUTH CRAM-MD5 command indicates success or failure. To learn if the command succeeded, get the ReplyCode property. If the value is Pop3ReplyCode.OK, then the command succeeded. If the value is Pop3ReplyCode.ERR, then the command failed.
| Exception Type | Condition |
|---|---|
| Exception | If a network or protocol error occurs. |
Pop3Client Class | Hunny.Mail Namespace | Apop method | POP3 AUTH command | RFC 2195 IMAP/POP AUTHorize Extension for Simple Challenge/Response