OpenImapAccount (open)
This function will try to login to a IMAP server
Syntax
LOADLIB "wh::internet/imap.whlib";
INTEGER FUNCTION OpenImapAccount(STRING serverip, INTEGER serverport, STRING username, STRING passwd)Parameters
STRING serveripString containing the IP of the IMAP mail server
INTEGER serverportNumber of the port of the IMAP mail server
STRING usernameThe user name of the account to connect with
STRING passwdThe password of the account
Return value
INTEGERID or error code
Description
This function tries to login on a IMAP 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 IMAP server. IF -3 is returned the IMAP server was not ready.