php mail function not working on ubuntu server

I want to enable the simple php mail() function on an Ubuntu server.

three steps

sudo apt-get install sendmail
sudo sendmailconfig (answer Yes to everything)
sudo service apache2 restart

Disabling “Use Socket For PHP-FPM” did the trick.


Leave a Reply