>what has to be configured, and how, on a bsd server to allow the mail()
>function to work in php? using sendmail?

php.ini
Use the path to sendmail there, with the -t as suggested, and *YES* the
quotes *ARE* supposed to be part of it:

sendmail_path = "/path/to/sendmail -t"

You may also need to ease up restrictions in sendmail.conf so that the PHP
user is *allowed* to send out email, forge headers, and other fun things
that are pretty essential to making mail() useful.

You may also want to create a specific new user, different from the usual
"nobody", and use that for User in httpd.conf, so that PHP (all of Apache,
really) runs as 'www' or 'httpd' instead of 'nobody'

It will stop a few stupid people trying to abuse the lack of restriction on
email sending...

Not *really* much of a barrier, but every little bit helps.

-- 
Like Music?  http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
major distro).  Need to record live events (mixed already) to stereo
CD-quality.  Soundcard Recommendations?
Software to handle the recording? Don't need fancy mixer stuff.  Zero (0)
post-production time.  Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo
audio-to-disk.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to