Re: Re: PHP 4.0 Bug #9489 Updated: The mail() function doesn't return the success or error
| From: | Hartmut Holzgraefe | Date: | Tue, 03 Apr 2001 18:21:36 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #9489 Updated: The mail() function doesn't return the success or error | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-50730@lists.php.net to get a copy of this message | ||
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 ($Result===false)?"-false-":"-$Result-";
instead
--
Hartmut Holzgraefe hartmut@six.de http://www.six.de
+49-711-99091-77