Dart Smtp, Pop, Imap Controls
Login Method
A hostname or IP address.
Specifies the server account to access.
Specifies the password for the server account.
Specifies the desired port number. Defaults to port 110 (or 995 for implicitly secure connections).
Description
Connect to a POP3 server and authenticate in one easy step.
Syntax
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 _
) 
Parameters
Server
A hostname or IP address.
Username
Specifies the server account to access.
Password
Specifies the password for the server account.
RemotePort
Specifies the desired port number. Defaults to port 110 (or 995 for implicitly secure connections).
Remarks

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.

Error Codes

This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):

See Also

Pop Object  | Pop Members


PowerTCP Mail for ActiveX Documentation Version 2.13
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic