Hi,
I have a redhat 9 linux machine running apache 2.0.47, mysql 4.0.15,
and php 4.3.4. I have been puzzled by this mail() problem for quite a
while, could someone please give me some hint on this?
I configured sendmail with a relay so that all outgoing mails go
through our organization's exchange mail server:
DSexchange.doma in.com. The php.ini file specified the path to
sendmail: "sendmail_p ath= /usr/sbin/sendmail -t -i".
I can send email out from shell by doing ">mail ls*******@yahoo .com".
I also tested a shell script using php mail() function:
----------------------------------------------------
#!/usr/local/php/bin/php -q
<?php
$sent=mail("ls* ******@yahoo.co m", "php email", "test this");
print "Send=$sent \n";
?>
----------------------------------------------------
This works fine too.
But when I tested the following script on the web, the email cannot be
sent out. The browser returned with "Send=". There is nothing in the
mail queue either.
----------------------------------------------------
<?php
$sent=mail("ls* ******@yahoo.co m", "php email", "test this");
print "Send=$sent \n";
?>
----------------------------------------------------
Your help is greatly appreciated.
Lu