Search code examples
phpemailubuntu-8.10

How to make mail() work on Ubuntu?


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.


Solution

  • 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