georgeocrawford
Technical User
Hi,
I'm setting up php on a friends computer. He's running OS X 10.2.6 Server.
We've got php set up, and it seems to do everything except the mail function.
The above script hangs for about 15 seconds, then prints "no".
There was NOT a php.ini file in the original installation of PHP. I have added one to the directory /usr/lib/php, which is a direct copy of
Restarted Apache, same result.
I then changed the following:
to
... but this changed nothing. I believe this was the default path anyway.
Can someone please help.
I have no experience using OS X Server. I don't know if sendmail automatically runs, or if it needs to be started, or what the path to it actually is. I got thie path above from the Apple Help document on sendmail
Many thanks!
______________________
George
I'm setting up php on a friends computer. He's running OS X 10.2.6 Server.
We've got php set up, and it seems to do everything except the mail function.
Code:
<?php
$email = mail("me@hotmail.com", "hello", "hello");
echo ($email ? "yes" : "no");
?>
The above script hangs for about 15 seconds, then prints "no".
There was NOT a php.ini file in the original installation of PHP. I have added one to the directory /usr/lib/php, which is a direct copy of
Restarted Apache, same result.
I then changed the following:
Code:
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
to
Code:
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail
... but this changed nothing. I believe this was the default path anyway.
Can someone please help.
I have no experience using OS X Server. I don't know if sendmail automatically runs, or if it needs to be started, or what the path to it actually is. I got thie path above from the Apple Help document on sendmail
Many thanks!
______________________
George