OpenSecureImapAccount (open)

This function will try to login to a secure IMAP server

Syntax

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

INTEGER FUNCTION OpenSecureImapAccount(STRING serverip, INTEGER serverport, STRING username, STRING passwd)

Parameters

STRING serverip

String containing the IP of the IMAP mail server

INTEGER serverport

Integer of the port of the IMAP mail server

STRING username

The user name of the account to connect with

STRING passwd

The password of the account

Return value

INTEGER

ID or error code

Description

This function tries to login on a secure 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.