Hunny Software Library Reference

Pop3Client.User Method 

Sends the USER command.

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

Parameters

user
The user name for the client login.

Remarks

The USER command sends the user login name to the server. After you send the user name, you must send the PASS command to send the password for that user.

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