Pop Object : Login Method |
Visual Basic |
---|
Public Sub Login( _ ByVal Server As String, _ Optional ByVal Username As String, _ Optional ByVal Password As String, _ Optional ByVal RemotePort As Long = 0 _ ) |
Most POP servers require a Username and Password; typically both should be specified. After a successful login the Count property is set to the number of messages on the server.
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):