Re: mail function -- not functioning for me!
| From: | David Robley | Date: | Wed, 19 Jul 2000 01:38:19 +0000 |
| Subject: | Re: mail function -- not functioning for me! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7191@lists.php.net to get a copy of this message | ||
On 18 Jul, Dave Turnbull wrote:
> PHP 4.0.1pl2
> Mac OS X 1.2
> Apache 1.3.12
>
> I have been trying to get a simple mail function to work with PHP -- I want
> to use it to create a feedback form, eventually. I copied the code from a
> book, and they say it should work. But, of course, it is not. the actuall
> code will follow, but I don't think it's an error in the code, because when
> I put a deliberate error in, php DOES generate an error message for me.
> Otherwise, no error messages.
>
> I think the problem lies in the interaction between PHP and sendmail. The
> server tells me sendmail is in /usr/sbin and that it is running. This is the
> path I put in the php.ini, on the "sendmail_path =" line. This line is not
> commented. I have tried various e-mail send-to addresses, just in case. I
> know PHP is tracking vars, because it displays the "thank you" message
> correctly. I also, therefore, know that is not a problem of file location,
> etc.
>
Make sure that you have /usr/sbin/sendmail -t i the ini file, restart
your web server and try again. If it still fails, check your system logs
for mail-related error messages. Also see the archives as this topic has
been covered recently.
> **CODE FOR HTML FORM** <Snipped>
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA