[PHP-DEV] Re: PHP 4.0 Bug #9489 Updated: The mail() function doesn't return the success or error

2001-04-03 Thread Star-Tools Team
Dear Jani, The mail() function returns either TRUE if mail was sent and FALSE if not. That's not correct. The mail() function gives NO result back, if the mail was sent and NO result, if the mail was not sent. Or what return value did you mean? Does it always return FALSE? I've outputed

Re: [PHP-DEV] Re: PHP 4.0 Bug #9489 Updated: The mail() function doesn't return the success or error

2001-04-03 Thread Hartmut Holzgraefe
Star-Tools Team wrote: I've outputed the return value by using the following code: $Result = mail(...) echo "-$Result-"; The output was "--"! so $Result was either empty or 'false' as false converts to an empty string you might try this instead: echo