    SMTP :: boolean recv ( resource connection, integer first_code [, integer second_code ] )

    Return TRUE if the code has been successfully received, FALSE if not.

    Example:

    // connect to 'smtp.hostname.tld' port '25'
    $c = fsockopen('smtp.hostname.tld', 25, $errno, $errstr) or die($errstr);

    // expect response code '220'
    $r = SMTP::Recv($c, 220);

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

    See Also: SMTP::Connect()

    [ Comments ]

    Last update: Sunday, June 24, 2007