RE: [PHP-GENERAL] mail()

From: Date: Tue, 06 Jun 2000 04:25:43 +0000
Subject: RE: [PHP-GENERAL] mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1110@lists.php.net to get a copy of this message
what does the -t flag mean? chris -----Original Message----- From: David Robley [mailto:huntsman@www.nisu.flinders.edu.au] Sent: Tuesday, June 06, 2000 12:12 AM To: reaster@comptechnews.com Cc: php-general@lists.php.net Subject: Re: [PHP-GENERAL] mail() 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#1110) next »