D Sledge wrote:
OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
web server: Apache 2.0
php version: 4.3.9
When I use the function mail(), the the from email address that is used is
apache@<hostname>. I
tried setting the sendmail_from directive in php.ini and the ServerAdmin
directive in httpd.conf
to something different but it still keeps using the same address. Is the a
different directive
I'm supposed to be setting to change the default from address?
Since there is a comment above the sendmail_from line in the default
php.ini that says "For Win32 only" I'm guessing it won't have any effect
on RHEL. This is also repeated in the manual.
Look into the optional 5th parameter to mail. Assuming the apache user
has the required permissions to do it, this allows you to add arguments
to the sendmail command. The one you want is [EMAIL PROTECTED] - see
example 3 on the PHP manual page for mail.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php