How to make mail() work on Ubuntu?

7k Views Asked by At

I have a new install of Ubuntu and trying to use the php's mail() function. The function fails, I guess I am missing a package or two in my installation.

1

There are 1 best solutions below

1
On BEST ANSWER

Have you configured the mail function in your php.ini ?

sendmail_path = /usr/sbin/sendmail -i -t    
or
sendmail_path = /usr/lib/sendmail -i -t