standard.net.mail.pop3_open

pop3_open is available since version 1.0.

Prototype:

number pop3_open(string hostname, string username, string password[, number port=110])

Parameters

hostname
the hostname of the pop3 server
username
the username
password
the password for username
port
the pop3 server port

Description:

Opens a connection to a POP3 mail server. For secure connections, check pop3_open_secured.

Return value:

Returns a connection handle if succeeded (successfully connected) or -1 if failed. To get the error returned by the server, you may call pop3_error.