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 ($Result===false)?"-false-":"-$Result-";

instead

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 the return value by using the following code:
$Result = mail(...)
echo "-$Result-";

The output was "--"!

> p.s. Tested with latest CVS and it works just fine.

Right now I have no time to compile the lastest version, I'm sorry.

On "Wed, 28 Feb 2001" you wrote to me to test the actual CVS snapshot.
On this day the problem was present in the actual CVS snapshot.

So if nobody has modified the mail() function I think the problem is
still present.

After reading a lot of other problem I think the problem is still
present.


Nils Hoyer

> Previous Comments:
> ---
> 
> [2001-02-27 18:03:29] [EMAIL PROTECTED]
> The mail() function give no return value since 4.0.3.
> 
> In earlier version I've got a return value if the mail has been sent or not.
> 
> I've tried to set the sendmail_path in the php.ini without success.
> 
> Nils Hoyer
> 
> ---
> 
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=9489&edit=2

-- 
___
Star-Tools GmbH, Hopfenweg 207, 22851 Norderstedt, Germany
http://www.star-tools.com/



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]