Sendmail_path configuration
My friend set-up my Linode with LAMP using Ubuntu 10.04. But now, support from the script that I am using for my website has suggested my php sendmail path has to be configured. Specifically, they said,
"The sendmail path may be incorrectly configured (php.ini - sendmail_path). Consult with your host to insure that this directive has been set properly."
How can I configure correctly?
Thanks.
5 Replies
Try to write in php.ini:
sendmail_path =/usr/sbin/sendmail -t -i -fyourmail@example.com
Don't forget to change
Could be useful:
@OZ:
Try to write in php.ini:
sendmail_path =/usr/sbin/sendmail -t -i -fyourmail@example.com
Wouldn't this cause an override of the "from" address from every php script on the Linode (potentially confusing with virtual hosts/multiple domains)? I would normally set that -f option on a per-site basis, either in the mailing script itself or a sitewide "include"; but maybe that's wrong.