    POP3 :: mixed pretr ( resource connection, integer message )

    Return string MESSAGE SOURCE if has been successfully received, boolean FALSE if not.

    Send "RETR" POP3 command to get integer message source. Retrieve the message.

    Example:

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

    // get the source of the old mail message
    $r = POP3::pRetr($c, 1) or die(print_r($_RESULT));

    // disconnect from server
    POP3::Disconnect($c);

    // print result
    echo $r;

    See Also: POP3::pStat(), POP3::pList()

    [ Comments ]

    Last update: Thursday, September 27, 2007