Hunny Software Library Reference

Pop3Client.Apop Method 

Sends the APOP command.

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

Parameters

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

Remarks

The APOP command authenticates a user to the POP3 server.

The APOP command is an alternative to the USER/PASS command sequence for client authentication. APOP is an optional command in POP3 that is not supported by all servers. When APOP is supported, it is generally preferred over the USER/PASS command sequence because it avoids sending the password as clear text over the network.

If the server does not support APOP, the method throws an instance of Hunny.Mail.Exception with ErrorCode.Protocol as the error code. This situation occurs when the server did not send a timestamp with its greeting.

The server's response to the APOP 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 | POP3 APOP command