OpenSecurePop3Account (open)

This function will try to login to a secure POP3 server

Syntax

LOADLIB "wh::internet/pop3.whlib";

INTEGER FUNCTION OpenSecurePop3Account(STRING server, INTEGER serverport, STRING username, STRING passwd)

Parameters

STRING server

String containing the IP address or hostname of the POP3 mail server

INTEGER serverport

Integer of the port of the POP3 mail server

STRING username

Username of the account

STRING passwd

Password of the account

Return value

INTEGER

ID or error code

Description

This function tries to login on a secure POP3 server with a user name and password. When the login is succesful the ID (>0) of the connection is returned. If -1 is returned by the function a wrong password was received. IF -2 is returned there was no connection with the POP3 server.