Method POP3Client():new() Professional
Creates an instance of the POP3Client class.
POP3Client():new( <cPOP3Server> , ;
[<nPort>] , ;
<cUserName> , ;
<cPassWord> , ;
[<oLogWriter>], ;
[<nLogLevel>] ) --> oPOP3Client
Port Number: | Description |
---|---|
110 *) | POP3 standard port. Communication is unencrypted. |
995 | Encrypted SSL connection (POP3S), can only be used with POP3 servers which support SSL. |
|
<nLogLevel> | Description |
---|---|
0 | Only errors are reported. |
1 | Errors and warnings are reported. |
2 | All communication with the mail server is reported. |
The method returns an instance of the POP3Client class.
The method :new() creates a new POP3Client object. The parameters passed when calling :new() define operations performed later by the POP3 client object.
The <nPort> parameter has special meaning in terms of how communication occurs between the POP3 server and the client. By default, unencrypted communication is used via the POP3 standard port 110. If port 995 is used, however, the client performs an SSL negotiation right after connecting to the server. This is known as POP3S.
If the server waits on non-standard ports for incoming connections then the method :setConnectionSecurity() can be used to force the type of communication.
A prerequisite for successfully using the POP3Client class is that the user name and password of the mail account hosted on the POP3 server are known. A connection to a POP3 server fails without proper authentication.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.