Forum Moderators: coopster

Message Too Old, No Replies

add default From: for php mail() on *nix

         

hafnius

7:13 am on Oct 29, 2004 (gmt 0)

10+ Year Member



Hi

I have tried to add a default sender address for my php mail scripts so i dont have to add it on a per script basis. I have access to the php.ini and i have tried two settings.


sendmail_path = "sendmail -t -i webmaster@mydomain.dk"
sendmail_path = "sendmail -t -i -f webmaster@mydomain.dk"

None of them seem to work. Does apache need to be restarted for these changes to take effect?

I have not tinkered with the Sendmail_from directive since this is only used on win32 servers, right?
/Hafnius

hafnius

3:38 pm on Oct 29, 2004 (gmt 0)

10+ Year Member



Oki i have done this in php.ini:

sendmail_path = "sendmail -t -i -f webmaster@mydomain.dk"

What i have seen tells me this is correct but that it will only kick in once apache is restarted. Am i wrong or right here?