ID: 33434
Updated by: [EMAIL PROTECTED]
Reported By: robert at bsd dot hu
-Status: Open
+Status: Feedback
Bug Type: Mail related
Operating System: IRIX 6.5
PHP Version: 4.3.11
New Comment:
and in main/php_config.h HAVE_SENDMAIL is ... ?
Previous Comments:
------------------------------------------------------------------------
[2005-06-22 14:47:17] robert at bsd dot hu
it finds sendmail in /usr/lib/sendmail and the dump_var(mail());
returns NULL
------------------------------------------------------------------------
[2005-06-22 14:16:21] [EMAIL PROTECTED]
What does this output for you ?
<?php
var_dump(mail());
?>
And make sure that sendmail headers were found during ./configure
execution (check `./configure ..... | grep -i sendmail`).
------------------------------------------------------------------------
[2005-06-22 13:36:32] robert at bsd dot hu
Description:
------------
When I try to use the mail() function it always returns FALSE. I've put
a debug line:
--- ---
83 PHP_FUNCTION(mail)
84 {
85 char *to=NULL, *message=NULL, *headers=NULL;
86 char *subject=NULL, *extra_cmd=NULL;
87 int to_len, message_len, headers_len;
88 int subject_len, extra_cmd_len, i;
89 char *to_r, *subject_r;
90
91 php_error_docref(NULL TSRMLS_CC, E_WARNING, "called
mail() function.");
--- ---
There is no such warning message in the logs. I've also tried to change
the sendmail_path to a script that touches a file. It does not get
executed.
Reproduce code:
---------------
Anything that uses mail();.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33434&edit=1