sudo apt-get install sendmail
- Configure /etc/hosts file, make sure the line looks like this:127.0.0.1 localhost yourhostname
- Run Sendmail's config and answer ''Y'' to everything:sudo sendmailconfig
- Restart apache:sudo service apache2 restart
* [[https://gist.github.com/adamstac/7462202|Install and configure Sendmail]]