I followed the following guide to install the software necessary to get email to work on my ubuntu server.
http://sourcelibrary.org/2011/08/29/...x-lamp-server/
I can send mail within the local host using php scripts, but external host like hotmail.. no dice!!
This is the script I'm using:
<?php
$to = "someone@example.com";
$subject = "Hi";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!<p>");
} else {
echo("<p>Message delivery failed...<p>");
}
?>