POP3 :: mixed connect ( string address, string username, string password [, integer port [, mixed ssl [, integer timeout ]]] )

Returns RESOURCE if the server connection has been established, FALSE if not. Open a connection to POP3 Mail server. Default values are: integer port: 110 mixed ssl: boolean false integer timeout: 30 mixed ssl possible values are: boolean false, boolean true, string tls, string ssl Notice: string address can have hostname or IPv4 value. The standard port values are: 110 - default, and 995 - TLS/SSL. Example:

$open = POP3::Connect('mail.host.net', 'username', 'password');

echo $open ? 'Connected.' : 'Can not connect.';

[ Comments ] Last update: Friday, June 16, 2006