#33434 [Opn->Fbk]: the mail() function does not call the needed function in mail.c
| From: | tony2001@php.net | Date: | Wed, 22 Jun 2005 13:32:02 +0000 |
| Subject: | #33434 [Opn->Fbk]: the mail() function does not call the needed function in mail.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80820@lists.php.net to get a copy of this message | ||
ID: 33434
Updated by: tony2001@php.net
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] tony2001@php.net
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