| OpenImapAccount |
| |
This function will try to login to a IMAP server |
| |
| Library |
 |
wh::internet/imap.whlib |
| |
| Syntax |
 |
PUBLIC INTEGER FUNCTION OpenImapAccount (STRING serverip,INTEGER serverport,STRING username,STRING passwd) |
| |
| 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. |
| |
| Parameters |
 |
| serverip |
 |
String containing the IP of the IMAP mail server |
 |
| serverport |
 |
Number of the port of the IMAP mail server |
 |
| username |
 |
The user name of the account to connect with |
 |
| passwd |
 |
The password of the account |
 |
|
| |
| Returns |
 |
ID or error code |
| |