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

    Return RESOURCE connection if has been successfully connected, boolean FALSE if not.

    Default values are:
    integer port: 110
    integer timeout: 30

    string ssl possible values are: tls, ssl, sslv2 or sslv3

    Notice: string address can have hostname or IPv4 value.
    The standard port values are: 110 - default, and 995 - SSL (secure).

    Example:

    // connect to 'pop.hostname.tld'
    $c = POP3::Connect('pop.hostname.tld', 'username', 'password');

    // print result
    if ($c) echo 'Successfully connected !';
    else print_r($_RESULT); // <- for debugging

    See Also: POP3::Disconnect()

    [ Comments ]

    Last update: Tuesday, June 26, 2007