Re: How to change mail defaults?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello LLC,

Sunday, November 21, 2004, 8:34:26 PM, you wrote:

ML> In php.ini we have the ability to set sendmail_from only for
ML> Windows. It is unfair, because it does not work for Linux. When I
ML> broadcast, the From defaults to 'Apache' and people have
ML> complained about that.

It will only set the From address if you do not set it yourself in the
mail function. Personally I've never used the sendmail_from php.ini
value in my life (on Windows servers). Do it like this:

mail('whoever@xxxxxxxxxxxxx', 'Subject', $message, "From:
you@xxxxxxxxxxxxxx")

Take a look at the examples for mail() in the PHP manual.

ML> Another thing that is causing trouble is that uploaded file
ML> ownership defaults to apache.apache, and I could not find a way to
ML> change ownership and permissions for uploaded files. Did anybody
ML> in this list solve these problems? Thank you

That, I'm afraid, is down to the configuration of your web server and
pretty much out of your control (unless you can control the
configuration of your web server of course).

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux