OpenPop3Account (open)
This function will try to login on a POP3 server
Syntax
LOADLIB "wh::internet/pop3.whlib";
INTEGER FUNCTION OpenPop3Account(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 acount
STRING passwd
Password of the account
Return value
INTEGER
ID or error code
Description
This function tries to login on a 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.