Problems with mail command
| From: | Neil Harrison | Date: | Sun, 08 Sep 2002 16:19:28 +0000 |
| Subject: | Problems with mail command | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8367@lists.php.net to get a copy of this message | ||
A big HELLO to php-install,
I have a problem with the mail command - it doesn't work!
I'm using a simple script to test this....
<?php
$ret = mail("webmaster@subhc.org.uk", "Join", "message1");
print $ret;
?>
When this is run (http://www.subhc.org.uk/mailto.php) it repots a return code of
1 (success) but no mail is ever received.
Part of the problem is that I do not have control over the server as I only rent
a domain name on the server. The support people have said that as they don't use
this commend then they are unable (unwilling?) to fix it.
I've checked as much as I can - the PHP setupis pointing to the sendmail program
and it is in the expected place (/usr/sbin/sendmail).
If anyone can help point me in the right direction to try and solve this I'd be
grateful - php info for the site can be found at
http://www.subhc.org.uk/phpinfo.php
--
Thanks,
Neil Harrison