[EMAIL PROTECTED] (Daniel alsÚn) wrote:

 > Hi,
>
 > how do i display return values from functions?
 > Ie i want to see whether mail() returns TRUE or FALSE.

echo mail(...);
shows the return value, then you can do:

if (mail(...)) {
  //sent ok
} else {
  //not sent
}

-- 
Henrik Hansen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to