Re: mail()

From: Date: Tue, 06 Jun 2000 04:12:22 +0000
Subject: Re: mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1109@lists.php.net to get a copy of this message
On 5 Jun, Robert B. Easter wrote: > > I'm having trouble getting mail() to work. The documentation says all you have > to do is call it like: > > mail("my@email.adr", "Subject or message", "Message line1\nMessage > line > 2\nEtc", "From: somebody@somewhere.com"); > > When I check /var/log/messages, it looks like nothing happens at all - no > sendmail line. > > After this failed, I tried to use exec(), to run mail, but looks like I'd have > to do some strange things to make that work. > > Please help. :) > > Ps. I'm using PHP 4.0.0, Apache. Make sure that there is a line in your php.ini sendmail_path = /path/to/sendmail -t If not, add it, with the -t flag, and restart apache if you are using PHP module. 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

« previous php.general (#1109) next »