I installed WordPress on my Ubuntu 11.10 server, so this may or may not apply. If you:
tail /var/log/apache2/error.log
and get:
sh: /usr/sbin/sendmail: not found
Then:
# https://samiux.wordpress.com/2009/07/31/howto-godaddy-coms-relay-mail-server-with-postfix-on-ubuntu-server/
sudo apt-get remove sendmail
sudo apt-get autoremove
sudo apt-get install postfix
sudo nano /etc/postfix/sasl/sasl_passwd
smtpout.secureserver.net [email protected]:XXXXXXXXXXXXXXXXX
chown root:root /etc/postfix/sasl/sasl_passwd
chmod 600 /etc/postfix/sasl/sasl_passwd
postmap /etc/postfix/sasl/sasl_passwd
sudo nano /etc/postfix/main.cf
relayhost = [smtpout.secureserver.net]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtp_sasl_security_options = noanonymous