Sends the APOP command.
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.
| Exception Type | Condition |
|---|---|
| Exception | If a network or protocol error occurs. |
Pop3Client Class | Hunny.Mail Namespace | POP3 APOP command