PHP mail() function on Ubuntu

This will get the PHP mail() function to work on a Ubuntu computer.
sudo apt-get install php-pear
sudo pear install mail
sudo pear install Net_SMTP
sudo pear install Auth_SASL
sudo pear install mail_mime
sudo apt-get install postfix
# Choose Internet Site
# System mail name: localhost

 

Print