Hunny Software Library Reference

Pop3Client.AuthCramMd5 Method 

Send the AUTH CRAM-MD5 command.

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

Parameters

user
The user name for the client login.
password
The password for the client login.

Remarks

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.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Pop3Client Class | Hunny.Mail Namespace | Apop method | POP3 AUTH command | RFC 2195 IMAP/POP AUTHorize Extension for Simple Challenge/Response