|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-06-22 13:36 UTC] 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();.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 01:00:01 2025 UTC |
That's interesting. From what I can see, mail.c includes php.h, which includes tsrm_virtual_cwd.h, which includes tsrm_config_common.h, which includes tsrm_config.h, which in turn includes php_config.h, where HAVE_SENDMAIL is defined. I.e. it looks like this: mail.c php.h tsrm_config.h tsrm_config_common.h tsrm_config.h php_config.h Could you plz figure out which one of these includes doesn't get included and why?