I know that to send e-mail from localhost on Windows, you need to change SMTP server in php.ini however this is valid only on Windows:
[mail function]
; For
If you're running Debian and variants thereof (*buntu, etc.), you can install a mail server by running sudo tasksel install mail-server
, which should set you up with basic email capabilities. You can test this by running in command line echo 'body' | sendmail recipient@example.net
, or as others have mentioned, mail($to, $subj, $msg)
in PHP.