If you get the following error ater installing Drupal:
Unable to send e-mail. Please contact the site administrator if the problem persists.
Install sendmail:
sudo apt-get install sendmail
Edit php.ini
:
I configured it to ouse Gmail’s smtp server.
sudo gedit /etc/php5/apache2/php.ini
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 465
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /usr/sbin/sendmail -t
sendmail_from = me@myserver.com